summaryrefslogtreecommitdiff
path: root/.rr.yaml
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2022-04-05 20:51:50 +0200
committerValery Piashchynski <[email protected]>2022-04-05 20:51:50 +0200
commit7834636158f26aaa7e8f61d585fc2d7b9392fbc3 (patch)
tree7be44246dd78e1310335e2d0f2947afc152a05fe /.rr.yaml
parent08b74400f5ebd75bd33af12c645a38fb38b73c79 (diff)
config: add file logger options to the `.rr.yaml` and schema2.0.json
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to '.rr.yaml')
-rw-r--r--.rr.yaml30
1 files changed, 30 insertions, 0 deletions
diff --git a/.rr.yaml b/.rr.yaml
index 5c6c7b62..d54bc068 100644
--- a/.rr.yaml
+++ b/.rr.yaml
@@ -109,6 +109,36 @@ logs:
# Default: "stderr"
err_output: stderr
+ # File logger options
+ #
+ # Default: null
+ file_logger_options:
+
+ # Path to the file
+ #
+ # Default: It uses <processname>-lumberjack.log name in the os tempdir if empty.
+ log_output: "/tmp/my.log"
+
+ # Max file size in MB
+ #
+ # Default: 100
+ max_size: 100
+
+ # max_age is the maximum number of days to retain old log files based on the timestamp encoded in their filename.
+ #
+ # Default: 1 (day)
+ max_age: 1
+
+ # max_backups is the maximum number of old log files to retain.
+ #
+ # Default: retain all (if set to 0)
+ max_backups : 5
+
+ # Compress determines if the rotated log files should be compressed using gzip.
+ #
+ # Default: false
+ compress: false
+
# You can configure each plugin log messages individually (key is plugin name, and value is logging options in same
# format as above).
#