vcpe/config/zlog.conf

30 lines
502 B
Plaintext

[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"
file perms = 644
fsync period = 1K
[levels]
TRACE = 10
CRIT = 130, LOG_CRIT
[formats]
simple = "%m"
normal = "[%d(%F %T).%ms][%-6V][%c][%f:%L] %m"
[rules]
*.* >stdout; normal
*.INFO "/var/log/vcpe/%M(vni)_vcpe.log", \
1MB * 12 ~ "/var/log/vcpe/%M(vni)_vcpe_.%D(%F) #2r #3s.log"; \
normal