loglevel 指令
說明:
控制錯(cuò)誤日志的詳細(xì)程度
語(yǔ)法:
loglevel 級(jí)別
默認(rèn)值:
loglevel warn
上下文:
服務(wù)器配置, 虛擬主機(jī)
狀態(tài):
核心
模塊:
core
loglevel用于調(diào)整記于錯(cuò)誤日志中的信息的詳細(xì)程度。(參閱errorlog指令)。可以選擇下列級(jí)別,依照重要性降序排列:
level
description
example
emerg
緊急 - 系統(tǒng)無(wú)法使用。
"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
錯(cuò)誤情況。
"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
出錯(cuò)級(jí)別信息
"opening config file ..."
當(dāng)指定了特定級(jí)別時(shí),所有級(jí)別高于它的信息也會(huì)同時(shí)報(bào)告。比如說,當(dāng)指定了loglevel info時(shí),所有 notice和warn級(jí)別的信息也會(huì)被記錄。
建議至少要使用crit級(jí)別。
示例如下:loglevel notice
商業(yè)源碼熱門下載www.html.org.cn
新聞熱點(diǎn)
疑難解答
圖片精選