我使用Laravel5.4和日志记录记录错误。但有时删除当前日志,而laravel生成此错误:The stream or file "/storage/logs/laravel-2019-09-06.log" could not be opened我手动创建日志文件,并将这个权限chmod 775 -R放到存储目录中,但是它还是会丢失。
我还浏览了其他几个问题,并尝试了与错误报告相关的各种解决方案,包括error_reporting(E_ALL);我在Apache中使用MultiViews,我的DB查询是使用一个自定义的PDO类完成的。我跑过了直接在服务器上,它会报告
No syntax errors detected in new.ph