-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #116 from ionutbalutoiu/sighup-log-rotate
Rotate log file on SIGHUP
- Loading branch information
Showing
3 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Logging | ||
|
||
By default, GARM is logging only on standard output. | ||
|
||
If you would like GARM to use a logging file instead, you can use the `log_file` configuration option: | ||
|
||
```toml | ||
[default] | ||
# Use this if you'd like to log to a file instead of standard output. | ||
log_file = "/tmp/runner-manager.log" | ||
``` | ||
|
||
## Rotating log files | ||
|
||
If GARM uses a log file, by default it will rotate it when it reaches 500MB or 28 days, whichever comes first. | ||
|
||
However, if you want to manually rotate the log file, you can send a `SIGHUP` signal to the GARM process. |