PHP:将错误记录到本地日志文件
I am trying to setup PHP to log errors locally so that I can solve this problem.
However, I can't even get this to work. I have followed this tutorial, but nothing. Does it only log fatal errors or what?
Is there anything else I need to make sure of?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
需要这些设置:
log_errors = on
error_reporting = E_ALL
如果你想在 .htaccess 中设置这些,你可以这样做:
php_value log_errors 1
php_value error_reporting 6143
need these settings:
log_errors = on
error_reporting = E_ALL
if you want to set these in .htaccess, you can do somn like:
php_value log_errors 1
php_value error_reporting 6143