服务器运行产生的错误日志是分级别的,具体等级:
| Level | Description | Example |
|---|---|---|
emerg | Emergencies - system is unusable.紧急状况;服务器无法使用 | "Child cannot open lock file. Exiting" |
alert | Action must be taken immediately.必须立刻采取动作 | "getpwuid: couldn't determine user name from uid" |
crit | Critical Conditions.危急状况 | "socket: Failed to get a socket, exiting child" |
error | Error conditions.出现错误 | "Premature end of script headers" |
warn | Warning conditions.警告 | "child process 1234 did not exit, sending another SIGHUP" |
notice | Normal but significant condition.正常,但有情况要注意 | "httpd: caught SIGBUS, attempting to dump core in ..." |
info | Informational.普通信息 | "Server seems busy, (you may need to increase StartServers, or Min/MaxSpareServers)..." |
debug | Debug-level messages.调试级别信息,包括模块运行状态 | "Opening config file ..." |
这个错误级别记录在apache的配置文件httpd.conf或者虚拟主机配置文件中

LogLevel就指定了最低要记录的错误级别
本文详细解析了服务器运行过程中产生的错误日志的不同级别,从紧急状况到调试信息,涵盖了emerg、alert、crit、error、warn、notice、info及debug八个级别,每个级别都附有具体的例子说明。
323

被折叠的 条评论
为什么被折叠?



