Skip to content

Fixes / improvements related to logger#2676

Open
lipaun wants to merge 11 commits intounbit:masterfrom
lipaun:bugfix/logging
Open

Fixes / improvements related to logger#2676
lipaun wants to merge 11 commits intounbit:masterfrom
lipaun:bugfix/logging

Conversation

@lipaun
Copy link
Copy Markdown

@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