add example config.yaml

This commit is contained in:
Florian Beisel 2024-03-21 01:46:06 +01:00
parent c69715f275
commit b162167ba1
Signed by: florian
GPG Key ID: 79ECA2E54996FF4D
1 changed files with 14 additions and 0 deletions

14
config.yaml Normal file
View File

@ -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