douan4347 2019-01-14 19:24
浏览 731

尽管将log_max_files设置为0,Laravel日志仍会自动清除

Laravel is automatically clearing the logs on our production server once every seven days. The desired outcome is to keep one log running log file that is never cleared.

I have set 'log_max_files' => 0 in config/app.php. I cleared the cache with php artisan cache:clear, composer dump-autoload, as well as php artisan config:cache.

Our server is running on Google Console and deployed with Laravel Forge. There are no scheduled tasks on forge, nor are there any cronjobs running on the server that would empty the logs (that I know of).

edit: I have verified that the logs are behaving as expected on my development server and are not being emptied. This indicates that it's probably an issue with my production server, possibly Forge configuration or some default behavior on Google Console that might automatically clear logs.

Any advice would be greatly appreciated. Thank you!

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 素材场景中光线烘焙后灯光失效
    • ¥15 请教一下各位,为什么我这个没有实现模拟点击
    • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
    • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
    • ¥20 有关区间dp的问题求解
    • ¥15 多电路系统共用电源的串扰问题
    • ¥15 slam rangenet++配置
    • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
    • ¥15 ubuntu子系统密码忘记
    • ¥15 保护模式-系统加载-段寄存器