服务器运行产生的错误日志是分级别的,具体等级:
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就指定了最低要记录的错误级别