dongnaosuan5407 2012-09-26 17:33
浏览 49
已采纳

php错误日志,如何删除重复项/查找唯一错误[重复]

This question already has an answer here:

Is there a way to search the error log for only unique errors. Reason being I have a lot of duplicate errors and don't want to miss the rare ones.

How would I go about writing a custom script which parses the error log, and filters out all of the duplicates excluding the datetime.

</div>
  • 写回答

2条回答 默认 最新

  • doupin5667 2012-09-26 18:11
    关注

    Set ignore-repeated-errors= On in php.ini or add ini_set('ignore-repeated-errors', 1); to your php scripts

    This will stop php from logging an error more than once i.e. error messages caused by same line in same script.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 qtcp 发送数据时偶尔会遇到发送数据失败?用的MSVC编译器(标签-qt|关键词-tcp)
  • ¥15 cam_lidar_calibration报错
  • ¥15 拓扑学,凸集,紧集。。
  • ¥15 如何扩大AIS数据容量
  • ¥15 单纯型python实现编译报错
  • ¥15 c++2013读写oracle
  • ¥15 c++ gmssl sm2验签demo
  • ¥15 关于模的完全剩余系(关键词-数学方法)
  • ¥15 有没有人懂这个博图程序怎么写,还要跟SFB连接,真的不会,求帮助
  • ¥15 PVE8.2.7无法成功使用a5000的vGPU,什么原因