Apache | Log Files | Setting the Level Recorded in the Error Log (LogLevel)

For the error log, you can specify how severe an error must be to be recorded by using eight levels. Configure it with LogLevel.

LogLevel level-to-record

The configurable levels are as follows.

Level Meaning
emerg A serious error that prevents the server from operating
alert An error more serious than crit
crit A critical error
error An error
warn A warning
notice A notice message
info Server information
debug Information for debugging

The levels are more serious from the top. If you set the level to error, errors above error, such as crit, alert, and emerg, are also recorded.

Setting a lower level leaves more information in the log, but the log file becomes larger, so change the setting as needed.

Search for LogLevel in the httpd.conf file, and you should find content like the following.

#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn

By default, LogLevel is set to warn. To change it, replace warn with another level value.