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
|
2023-02-07 01:55:50 +00:00
|
|
|
default format = "%d(%F %T.%l) %-6V (%c:%f:%L) %m%n"
|
2022-05-10 06:43:27 +00:00
|
|
|
|
2023-03-03 07:17:20 +00:00
|
|
|
file perms = 644
|
2022-05-10 06:43:27 +00:00
|
|
|
fsync period = 1K
|
|
|
|
|
|
|
|
[levels]
|
|
|
|
TRACE = 10
|
|
|
|
CRIT = 130, LOG_CRIT
|
|
|
|
|
|
|
|
[formats]
|
|
|
|
simple = "%m"
|
2023-02-07 01:55:50 +00:00
|
|
|
normal = "[%d(%F %T).%ms][%-6V][%c][%f:%L] %m"
|
2022-05-10 06:43:27 +00:00
|
|
|
|
|
|
|
[rules]
|
|
|
|
*.* >stdout; normal
|
2023-03-03 07:17:20 +00:00
|
|
|
*.INFO "/var/log/vcpe/%M(vni)_vcpe.log", \
|
|
|
|
1MB * 12 ~ "/var/log/vcpe/%M(vni)_vcpe_.%D(%F) #2r #3s.log"; \
|
2022-05-10 06:43:27 +00:00
|
|
|
normal
|
|
|
|
|
|
|
|
|