In this section, we are going to learn about the error log. The related directives for the error log are as follows:
- ErrorLog
- LogLevel
The location and the name of server log files are set by the ErrorLog directive. It is the most important log file. The Apache httpd sends the information in this and also records produced while processing. Whenever a problem occurs with the server, this will be the first place to look. It contains the details of the things that went wrong and the process of fixing it.
The error log is written into a file. On Unix systems, the errors can be sent to syslog by the server or you can pipe them to your program. The first thing in that log entry is the date and time of the message. The second entry records the severity of the error.
The LogLevel directive handles the errors sent to the error log by restricting the severity level. The third...