enable gzip support for log4rs

This commit is contained in:
2024-09-21 05:15:16 +00:00
committed by GitHub
parent 1cc8e67fb1
commit 684ef9fc34
3 changed files with 4 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ appenders:
kind: rolling_file
path: "log/requests.log"
encoder:
pattern: "{d} - {m}{n}"
pattern: "{d(%Y-%m-%d %H:%M:%S)} - {m}{n}"
policy:
kind: compound
trigger:
@@ -17,7 +17,7 @@ appenders:
kind: fixed_window
base: 1
count: 5
pattern: "logs/requests.{}.log"
pattern: "log/requests.{}.log.gz"
root:
level: info
appenders: