How to check syslog in Bash on Linux?

前端 未结 6 1631
执念已碎
执念已碎 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:31

    tail -f /var/log/syslog | grep process_name where process_name is the name of the process we are interested in

提交回复
热议问题