[英]Eliminating DEPRECATED errors form the error_log in PHP
Is it possible to eliminate DEPRECATED messages from the PHP error_log? 是否可以从PHP error_log中消除DEPRECATED消息?
I know I can use 我知道我可以用
~E_DEPRECATED
to keep them from the display but is there any way to keep them out of the error_log as well? 使它们不显示,但是还有什么方法可以使它们脱离error_log?
This may be a bug: http://bugs.php.net/bug.php?id=48843 这可能是一个错误: http : //bugs.php.net/bug.php?id=48843
The right way to keep that message out of your logs is to replace the deprecated code :) 将该消息保留在日志之外的正确方法是替换不推荐使用的代码:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.