天天看点

apache的日志级别和设置

1.emerg 

紧急 - 系统无法使用。

"Child cannot open lock file. Exiting"

2.alert 

必须立即采取措施。

"getpwuid: couldn’t determine user name from uid"

3.crit 

致命情况。

"socket: Failed to get a socket, exiting child"

4.error 

错误情况。

"Premature end of script headers"

5.warn 

警告情况。

"child process 1234 did not exit, sending another SIGHUP"

6.notice 

一般重要情况。

"httpd: caught SIGBUS, attempting to dump core in ..."

7、info 

普通信息。

"Server seems busy, (you may need to increase StartServers, or Min/MaxSpareServers)..."

8.debug 

出错级别信息

"Opening config file ..."

当指定了特定级别时,任何级别高于他的信息也会同时报告。比如说,当指定了LogLevel info时,任何 notice和warn级别的信息也会被记录。

建议至少要使用crit级别。

本文转自 gehailong 51CTO博客,原文链接:http://blog.51cto.com/gehailong/264152,如需转载请自行联系原作者