Conversation
adding date to cron.log -> cron_2022_01_19.log
|
That way you would have n log files for n cron tasks. Only one log file with a good rotation policy is better |
Only one file per day to my understanding of the proposed change. The log rotation is then extensible to compressing older files and also deleting very old files based on user's wish. |
|
Why not move the (optional) suffix in conf? |
Reflecting current implementation that would mean something like introducing new config option [CRON]
log = TRUE
logFilename=cronLogs/cron_{{ @(date'Y_m_d') }}.logwhich would put your cron logs into F3 logs directory and it's subdir "cronLogs" and rolling once per day? |
|
@slavino I like that the user can be free to choose |
|
Well then - the last proposal is 100% backward compatible and enables choice of time based rolling frequency via filename changes. |
adding date to cron.log -> cron_2022_01_19.log