Skip to content
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

Fixes / improvements related to logger #2676

Open
wants to merge 9 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