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 log file on SIGHUP #116

Merged
merged 1 commit into from
Jun 27, 2023

Conversation

ionutbalutoiu
Copy link
Contributor

Fixes #114.

Add functionality to rotate the log file when SIGHUP signal is received.

Also, a doc is added with few details about logging.

@ionutbalutoiu ionutbalutoiu force-pushed the sighup-log-rotate branch 4 times, most recently from a5e2d79 to 9a1f735 Compare June 27, 2023 16:10
util/util.go Outdated Show resolved Hide resolved
util/util.go Outdated Show resolved Hide resolved
@ionutbalutoiu
Copy link
Contributor Author

@gabriel-samfira review comments addressed.

cmd/garm/main.go Outdated Show resolved Hide resolved
cmd/garm/main.go Outdated Show resolved Hide resolved
cmd/garm/main.go Outdated Show resolved Hide resolved
Add functionality to rotate the log file when `SIGHUP` signal is received.

Also, a doc is added with few details about logging.

Signed-off-by: Ionut Balutoiu <ibalutoiu@cloudbasesolutions.com>
@gabriel-samfira gabriel-samfira merged commit aa44bf4 into cloudbase:main Jun 27, 2023
4 checks passed
@ionutbalutoiu ionutbalutoiu deleted the sighup-log-rotate branch June 27, 2023 17:13
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.

Support SIGHUP for logrotate
2 participants