Apache 错误日志
配置文件中:httpd.conf
ErrorLog "/usr/local/var/log/apache2/error_log1"
CustomLog "/usr/local/var/log/apache2/access_log" common
虚拟站点配置文件中:httpd-vhosts.conf <VirtualHost *:80> DocumentRoot "/Users/andy/Sites" ErrorLog "/usr/local/var/log/apache2/localhost-error_log" CustomLog "/usr/local/var/log/apache2/sites-access_log" common </VirtualHost>
日志级别:httpd.conf
#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel error