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

Rotate logs #347

Merged
merged 3 commits into from
Apr 5, 2018
Merged

Rotate logs #347

merged 3 commits into from
Apr 5, 2018

Conversation

mstemm
Copy link
Contributor

@mstemm mstemm commented Apr 5, 2018

Add ability to close/reopen outputs on SIGUSR1, and add a logrotate example that relies on it.

This fixes #266

When signaled with SIGUSR1, close and reopen file and program based
outputs. This is useful when combined with logrotate to rotate logs.
Example logrotate config that relies on SIGUSR1 to rotate logs.
Options may not be provided for some outputs (like stdout), so create an
empty set of options in that case.
@mstemm mstemm merged commit 8389e44 into dev Apr 5, 2018
@mstemm mstemm deleted the rotate-logs branch April 5, 2018 21:31
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.

file rotation for 'file_output'
1 participant