How to check syslog in Bash on Linux?

前端 未结 6 1435
执念已碎
执念已碎 2021-01-31 13:20

In C we log this way:

syslog( LOG_INFO, \"proxying %s\", url );

In Linux how can we check the log?

6条回答
  •  别那么骄傲
    2021-01-31 13:56

    On Fedora 19, it looks like the answer is /var/log/messages. Although check /etc/rsyslog.conf if it has been changed.

提交回复
热议问题