Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Christofer's avatar

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.

0 likes
0 replies

Please or to participate in this conversation.