阅读背景:

如何在C中设置或获取本地系统日志文件?

来源:互联网 

I was wondering how to set or find the local log files on your computer in Linux. I was reading the GNU C guide on syslog, and when you open a log, you declare the log your going to write to. In the examples they have LOG_LOCAL0, LOG_LOCAL1, LOG_LOCAL2, etc.. How do you set these, or where are they located? I was also wondering where LOG_SYSLOG is located? When i was looking under /var/log, i didn't see anything that looked like a system log. I cannot seem to find much online about the log files themselves. Only how to use the syslog functions. I was wondering how to set or find the local lo




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: