dousou1878 2015-03-10 22:30
浏览 29

Apache错误日志级别。 是否应该消除所有错误?

Question: Should I try to eliminate all the errors I get in apache error log produced by my PHP/Javascript application? The apache conf allows for the following log levels: Trace8-trace1, debug, info, warn, error, crit, alert, emerg.

So far I set the loglevel to "debug" and I get errors like "Undefined index" or "Use of undefined constant prefix" but the application seems to be working just fine..

So is there any loglevel that I should set on apache and try to make sure I get absolutely no errors?

Thanks in advance!

  • 写回答

1条回答 默认 最新

  • dongnuo2879 2015-03-11 05:31
    关注

    Yes, you should try to resolve all the errors.

    The advantages of correcting all the errors are:

    • The log files will not be full of text
    • Performance will be better because PHP doesn't have to identify and react to the errors
    • Depending on the log configuration, you may save a lot of disk space
    • Your code should be more robust

    On the production server, set the log level fairly high. On development servers set the log level low.

    评论

报告相同问题?

悬赏问题

  • ¥15 关于用pyqt6的项目开发该怎么把前段后端和业务层分离
  • ¥30 线性代数的问题,我真的忘了线代的知识了
  • ¥15 有谁能够把华为matebook e 高通骁龙850刷成安卓系统,或者安装安卓系统
  • ¥188 需要修改一个工具,懂得汇编的人来。
  • ¥15 livecharts wpf piechart 属性
  • ¥20 数学建模,尽量用matlab回答,论文格式
  • ¥15 昨天挂载了一下u盘,然后拔了
  • ¥30 win from 窗口最大最小化,控件放大缩小,闪烁问题
  • ¥20 易康econgnition精度验证
  • ¥15 msix packaging tool打包问题