Skip to content

Fixes / improvements related to logger #2676

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

lipaun
Copy link

@lipaun lipaun commented Sep 10, 2024

  • Fixed permissions when triggering logrotate or logreopen (logto and logger plugin).
  • log-backupname option now accepts strftime formatting specifiers.
  • New config option "cron-logrotate", which will use internal cron to trigger log rotation

Examples (using ini file):

Will trigger log rotation every day and rotated file will be like: logfile.2024-08-22.log

logto = logfile.log
log-backupname = logfile.%%Y-%%m-%%d.log
cron-logrotate = 59 23 -1 -1 -1

Will log to both stdout and file, will trigger log rotation every day and rotated file will be like: logname.2024-08-22.log

logger = stdio
logger = file:logfile=logname.log,backupname=logname.%%Y-%%m-%%d.log,cron=59 23 -1 -1 -1

@lipaun lipaun changed the title Fixes / improovments related to logger Fixes / improvements related to logger Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy