We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
多个分类日志存储再同一个日志记录文件里,限制单个文件的大小和总日志文件的数量
zlog配置如下:
# # 单个日志最大5M,最多存10个 modbus_tcp.INFO "./logs/bau-%d(%F).log" , 5MB * 10 ~ "./logs/bau-old-%d(%Y%m%d).#2s.log"; detail main.INFO "./logs/bau-%d(%F).log"; detail data_storage.INFO "./logs/bau-%d(%F).log"; detail config.DEBUG "./logs/bau-%d(%F).log"; detail gpio.DEBUG "./logs/bau-%d(%F).log"; detail sqlite3.INFO "./logs/bau-%d(%F).log"; detail rs_485_screen.INFO "./logs/bau-%d(%F).log"; detail watch_dog.DEBUG "./logs/bau-%d(%F).log"; detail pcs_tcp.DEBUG "./logs/bau-%d(%F).log"; detail env_dev.INFO "./logs/bau-%d(%F).log"; detail can.INFO "./logs/bau-%d(%F).log"; detail # # *.* "aa.log", 100MB ~ "aa-%d(%Y%m%d).#2s.log"
5MB * 10 ~ "./logs/bau-old-%d(%Y%m%d).#2s.log"
期待您的回复!
The text was updated successfully, but these errors were encountered:
2.好像只有#r 结尾的可以自动删除, 你想啊, 文件名前辍都不一样,他怎么根据文件名统计数量,删除呢
Sorry, something went wrong.
No branches or pull requests
目的
多个分类日志存储再同一个日志记录文件里,限制单个文件的大小和总日志文件的数量
问题
zlog配置如下:
5MB * 10 ~ "./logs/bau-old-%d(%Y%m%d).#2s.log"
,是每个分类都要写上吗?期待您的回复!
The text was updated successfully, but these errors were encountered: