Where does linux store my syslog?

后端 未结 7 1494
暗喜
暗喜 2020-12-22 23:47

I wrote a simple test application to log something in a log file. I am using linux mint and after the application executes I try to view the log using this command: <

7条回答
  •  猫巷女王i
    2020-12-22 23:52

    Logging is very configurable in Linux, and you might want to look into your /etc/syslog.conf (or perhaps under /etc/rsyslog.d/). Details depend upon the logging subsystem, and the distribution.

    Look also into files under /var/log/ (and perhaps run dmesg for kernel logs).

提交回复
热议问题