大多数守护程序应用程序如何在 Linux 中进行日志记录?
现在大多数守护进程如何进行日志记录。 syslog 或者是否有我不知道的更新的日志记录工具?还是定制?
我问的原因是我开始使用 syslog,但注意到大多数守护进程没有记录到普通文件,并且它们没有在 syslog 配置文件中配置。
这让我相信他们正在做自己的事情。
哪个是首选?为什么现代应用程序避开系统日志?
How do most daemons do their logging these days. syslog or is there a newer logging facility that I'm not aware of? or custom?
The reason I ask is that I started using syslog but noticed most of the daemon processes were not logging to the normal files and they are not configured in the syslog config files.
That leads me to believe they are doing their own thing.
Which is preferred? why are modern apps steering clear of syslog?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
据我所知,是rsyslog。你设置正确了吗?
As far as I know, it is rsyslog. Did you set correctly?
Syslog 是记录消息的标准方式。如果您没有看到守护进程消息,请尝试将此行添加到 syslogd 配置中,重新加载守护进程,然后查看
/var/log/all.log
:Syslog is the standard way of logging messages. If you don't see your daemons messages, try to add this line to your syslogd configuration, reload the daemon then look at
/var/log/all.log
: