-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
44 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# roll-op Documentation | ||
|
||
First, read the [top-level README](/README.md). | ||
|
||
- [OP Stack Primer](/docs/opstack.md) | ||
- [Port Configuration](/docs/port-config.md) | ||
- [Vocabulary](/docs/vocabulary.md) | ||
- [Logging Policy](/docs/logging.md) |
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,27 @@ | ||
# Logging Policy | ||
|
||
The default logging policy for services (process that are supposed to keep running) is to rotate the | ||
logs once they reach 3M in size. This can be configured via the `logrotate_max_size` option (takes a | ||
number followed by a `k`/`M`/`G` suffix). | ||
|
||
The logs are rotated up to 300 times (accounted separately per log file) before the oldest rotations | ||
are removed. Rotations older than 14 days are also removed. This can be configured via the | ||
`logrotate_count` and `logrotate_max_days` options. | ||
|
||
Finally, you can override settings for individual log files. This is done by specifying logrotate | ||
commands directly (cf. [manpage]). Here's an example of how you can do this: | ||
|
||
```toml | ||
# at BOTTOM of the file | ||
[logrotate_overrides] | ||
"l1_node.log" = [ | ||
"size 1M", | ||
"rotate 10", | ||
] | ||
"l2_node.log" = [ | ||
"size 300k", | ||
"nocompress", | ||
] | ||
``` | ||
|
||
[manpage]: https://linux.die.net/man/8/logrotate |