Skip to content

Add explanation of how roll_keep and roll_keep_for work together#541

Open
antonc42 wants to merge 1 commit into
caddyserver:masterfrom
antonc42:antonc42-explain-log-file-cleanup
Open

Add explanation of how roll_keep and roll_keep_for work together#541
antonc42 wants to merge 1 commit into
caddyserver:masterfrom
antonc42:antonc42-explain-log-file-cleanup

Conversation

@antonc42

Copy link
Copy Markdown

The fact that both paramters determine which log files are kept was not clear before. The default settings for these two options cause only 10 days of log files to be kept instead of 90 if the log files are rotated daily.

See: https://caddy.community/t/how-are-roll-keep-and-roll-keep-for-combined/9049

Also: https://github.com/natefinch/lumberjack#cleaning-up-old-log-files

… which log files are kept.

The fact that both paramters determine which log files are kept was not clear before. The default settings for these two options cause only 10 days of log files to be kept instead of 90 if the log files are rotated daily.

See: https://caddy.community/t/how-are-roll-keep-and-roll-keep-for-combined/9049

Also: https://github.com/natefinch/lumberjack#cleaning-up-old-log-files
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