Merge pull request #939 from fengzeroz/main

log to stdout with category
This commit is contained in:
fengzeroz
2022-11-28 16:06:26 +08:00
committed by GitHub
+4 -3
View File
@@ -4,9 +4,10 @@ file perms = 666
[formats]
simple = "%d [%V] [%c] %f:%L %m%n"
stdout_format = "%d [%V] [%c] %f:%L %m%n"
file_format = "%d [%V] %f:%L %m%n"
[rules]
*.* "./logs/%c.log", 10MB * 3 ~ "./logs/%c.#2s.log"; simple
*.* >stdout; simple
*.* "./logs/%c.log", 10MB * 3 ~ "./logs/%c.#2s.log"; file_format
*.* >stdout; stdout_format