将光标移到/点击文章中的句子上,可以查看译文。      显示繁体中文内容    显示简体中文内容

Disable logging PHP Notices into php.log file (php.ini)
禁止将PHP通知记录到 php.log 文件中( PHP )

0 0

I have a situation on my server, my log files are taking up too much space and i see that there are a lot of warnings that are being logged. i would want to disable notices logging for now and keep the disk space under check.

The change i added onto php.ini file was :


error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR


I restarted my apache and zend but i still see that notices are still being logged into the php.log file.

Please let me know if there is something else that i need to configure.

时间: 原作者:

0 0

//Report all errors except E_NOTICE
error_reporting(E_ALL & ~E_NOTICE)


You can read more at :

http://php.net/manual/en/function.error-reporting.php

原作者:
...