Mar 3, 2024
0
Level 7
Debug level logs not being written on Production server
Strange issue where debug & info level logs not being written on Production server. Error level logs are being stored.
Hoping someone has an idea of what else I can try to get it to log debug & info messages.
Staging server on the same hosting environment is working, with same .env config.
I have tried:
- cleared cache, config, views, sessions
- restarted php, apache, memcached
- changing .env settings to be more debug-ish
// .env
APP_DEBUG=true
LOG_CHANNEL=daily
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug
TELESCOPE_ENABLED=false
// logging.php
'daily' => [
'driver' => 'daily',
'path' => storage_path('logs/laravel.log'),
'level' => env('LOG_LEVEL', 'debug'),
'days' => 14,
'replace_placeholders' => true,
'permission' => '0664'
],
Reason: because there's something not working on Production environment that is working on the Staging environment. So, I'm using some debug level messages to try and see if I can pinpoint the problem.
Please or to participate in this conversation.