Home  >  Article  >  Backend Development  >  PHP的错误日志文件“php_error_log”可以直接删除么?

PHP的错误日志文件“php_error_log”可以直接删除么?

WBOY
WBOYOriginal
2016-06-23 14:09:091784browse

因为在写代码的时候很多错误都一直放着没管,所以这个文件已经非常大了。打开和浏览都有点费劲。
如果不可以的话如何清空?关闭阿帕奇之后再删除基本就没问题了吧?


回复讨论(解决方案)

任何时候删除都是可以的

php 错误日志提供了一些选项,没有必要自己手工管理
ignore_repeated_errors = 0n ;不记录重复来源的错误
ignore_repeated_source = On ;忽略错误来源

这样的日志文件不会很大

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn