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

 

posted @ 2017-03-08 17:06  cloudshadow  阅读(410)  评论(0编辑  收藏  举报