天天看點

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,如需轉載請自行聯系原作者