Log files related to daemons and system processes are located in the /var/log directory. These log files use a standard protocol called syslog, handled by the syslogd daemon. Every standard application makes use of syslogd to log information. This recipe describes how to use syslogd to log information from a shell script.
Logging with syslog
Getting ready
Log files help you deduce what is going wrong with a system. It is a good practice to log progress and actions with log file messages. The logger command will place data into log files with syslogd.
These are some of the standard Linux log files. Some distributions use different names for these files:
Log file
|
Description
|
/var/log/boot.log |
Boot log information |
/var/log/httpd |
Apache web server log... |