From b162167ba139d1886e0faf46c29b313b8a88b22b Mon Sep 17 00:00:00 2001 From: Florian Beisel Date: Thu, 21 Mar 2024 01:46:06 +0100 Subject: [PATCH] add example config.yaml --- config.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 config.yaml diff --git a/config.yaml b/config.yaml new file mode 100644 index 0000000..0f591ce --- /dev/null +++ b/config.yaml @@ -0,0 +1,14 @@ +# Global settings +settings: + compress: true # Whether to compress rotated files + compressFormat: "gzip" # only gzip is implemented + createNew: true # Whether to create a new log file after rotation + createMode: "0644" # File permissions for the new log file + +# Log file definitions +logs: + - path: "./test.log" + rotateOnSize: 1MB + retentionCount: 3 + rotateOnAge: 6s + compress: false \ No newline at end of file