vcpe/config/zlog.conf

30 lines
476 B
Plaintext
Raw Normal View History

2022-05-10 06:43:27 +00:00
[global]
strict init = true
reload conf period = 10M
buffer min = 1024
buffer max = 2MB
#rotate lock file = /tmp/zlog.lock
rotate lock file = self
default format = "%d(%F %T.%l) %-6V (%c:%f:%L) - %m%n"
2022-05-10 06:43:27 +00:00
file perms = 600
fsync period = 1K
[levels]
TRACE = 10
CRIT = 130, LOG_CRIT
[formats]
simple = "%m"
2023-02-06 07:10:02 +00:00
normal = "[%d(%F %T).%ms][%-6V][%c][%f:%L] - %m"
2022-05-10 06:43:27 +00:00
[rules]
*.* >stdout; normal
*.INFO "./log/%c.log", \
2022-05-10 06:43:27 +00:00
1MB * 12 ~ "%E(HOME)/log/%c.%D(%F) #2r #3s.log"; \
normal