内部服务器500错误为什么不记录到apache的错误日志里面?

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

服务器运行产生的错误日志是分级别的,具体等级: 

LevelDescriptionExample
emergEmergencies - system is unusable.紧急状况;服务器无法使用 "Child cannot open lock file. Exiting"
alertAction must be taken immediately.必须立刻采取动作"getpwuid: couldn't determine user name from uid"
critCritical Conditions.危急状况"socket: Failed to get a socket, exiting child" 
errorError conditions.出现错误 "Premature end of script headers"
warnWarning conditions.警告"child process 1234 did not exit, sending another SIGHUP" 
noticeNormal but significant condition.正常,但有情况要注意 "httpd: caught SIGBUS, attempting to dump core in ..."
infoInformational.普通信息 "Server seems busy, (you may need to increase StartServers, or Min/MaxSpareServers)..."
debugDebug-level messages.调试级别信息,包括模块运行状态"Opening config file ..."

 这个错误级别记录在apache的配置文件httpd.conf或者虚拟主机配置文件中

 LogLevel就指定了最低要记录的错误级别

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值