There is no file specifically for recording error logs. Error logs, debugging information logs, and program execution logs are distributed among various main log files. The default path for the log file is: /var/log.
The following are the paths of several important log files and the information they contain:
/var/log/messages: including overall system information, mainly collecting valuable, non-debugging, non-critical Information. It contains logs, mail, cron, daemon, kern and auth during system startup.
/var/log/syslog: It is the standard log output file. It collects and stores log information of various program services based on settings, but does not collect authentication-related information.
/var/log/user.log: Log that records user information of all levels.
/var/log/auth.log: Contains system authorization information, including user login and permission mechanism used, etc.
/var/log/daemon.log: Contains log information of various system background daemon processes.
/var/log/kern.log: Contains logs generated by the kernel, which can help solve problems when customizing the kernel.
Recommended tutorial: centos tutorial
The above is the detailed content of Where are the error logs saved in centos system?. For more information, please follow other related articles on the PHP Chinese website!