【发布时间】:2013-06-21 08:08:40
【问题描述】:
我正在使用 syslog 从应用程序中捕获日志记录。我已将 syslog 配置为将我的应用程序日志写入 asl.conf 中的应用程序特定文件:
# Redirect foo to /var/log/foo.log
? [= Sender foo] file /var/log/foo.log
这可行,但重复的消息会被剔除。例如:
Jun 21 17:22:03 hostname.domain foo[346] <Debug>: This is a message!
Jun 21 17:22:03 --- last message repeated 3 times ---
如何禁用压缩重复消息?
【问题讨论】: