loglevel 指令
說明:
控制錯誤日志的詳細程度
語法:
loglevel 級別
默認值:
loglevel warn
上下文:
服務器配置, 虛擬主機
狀態:
核心
模塊:
core
loglevel用于調整記于錯誤日志中的信息的詳細程度。(參閱errorlog指令)??梢赃x擇下列級別,依照重要性降序排列:
level
description
example
emerg
緊急 - 系統無法使用。
"child cannot open lock file. exiting"
alert
必須立即采取措施。
"getpwuid: couldn't determine user name from uid"
crit
致命情況。
"socket: failed to get a socket, exiting child"
error
錯誤情況。
"premature end of script headers"
warn
警告情況。
"child process 1234 did not exit, sending another sighup"
notice
一般重要情況。
"httpd: caught sigbus, attempting to dump core in ..."
info
普通信息。
"server seems busy, (you may need to increase startservers, or min/maxspareservers)..."
debug
出錯級別信息
"opening config file ..."
當指定了特定級別時,所有級別高于它的信息也會同時報告。比如說,當指定了loglevel info時,所有 notice和warn級別的信息也會被記錄。
建議至少要使用crit級別。
示例如下:loglevel notice
商業源碼熱門下載www.html.org.cn
新聞熱點
疑難解答