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

jimmerioles's avatar

Laravel 5.5 Logging in /var/log/syslog instead in storage/logs/laravel.log

Hi hope someone can help.

I have a Laravel 5.5 application where, its logs are logging in /var/log/syslog instead in storage/log/laravel.log.

I have set my .env to this and checked the config/app.php:

APP_DEBUG=true
APP_LOG=single
APP_LOG_LEVEL=debug

The file permission on storage/log/ is okay and writable.

Also there's no library or package installed that will infer in logging i.e. Bugsnag, etc.

I also checked the application's registered custom service providers but there's nothing registered or booted that relates to logging that would somehow change the path or set the logging to syslog.

Do you guys know what's going on? I really appreciate if someone can help.

0 likes
6 replies
realrandyallen's avatar

Did you check config/logging.php ? Specifically:

        'single' => [
            'driver' => 'single',
            'path' => storage_path('logs/laravel.log'),
            'level' => 'debug',
        ],
Talinon's avatar

I know you said you checked your config/app.php, but just to confirm, make sure your log configuration is actually using your environment variable:

'log' => env('APP_LOG', 'single'),

If the above is set, make sure you clear your config cache: php artisan config:clear

@realrandyallen I don't think 5.5 had config/logging.php

jimmerioles's avatar

@REALRANDYALLEN - Hi @realrandyallen, thank you for replying.

Currently the application I am working is still on Laravel 5.5 and doesn't have config/logging.php which I believe should be present starting Laravel 5.6

jimmerioles's avatar

@TALINON - Hi @talinon, thanks for replying.

Yes I doubled check everything before posting, and everything in the config/app and .env regarding log configuration is same with base Laravel 5.5 installation.

   /*
    |--------------------------------------------------------------------------
    | Logging Configuration
    |--------------------------------------------------------------------------
    |
    | Here you may configure the log settings for your application. Out of
    | the box, Laravel uses the Monolog PHP logging library. This gives
    | you a variety of powerful log handlers / formatters to utilize.
    |
    | Available Settings: "single", "daily", "syslog", "errorlog"
    |
    */

    'log' => env('APP_LOG', 'single'),

    'log_level' => env('APP_LOG_LEVEL', 'debug'),

Also cleared all cache including config's cache with php artisan config:clear but it still weirdly logs like it has been set as syslog or the logging output is in /var/log/syslog instead in storage/logs/laravel.log.

jimmerioles's avatar
jimmerioles
OP
Best Answer
Level 9

So apparently upon thoroughly tracing, the application that I am currently working on has some custom customization in bootstrap\app.php that configured Monolog upon bootstrap.

So in case someone would encounter same issue as mine, be sure to also check your bootstrap\app.php file for custom customizations.

Thank you guys for your replies!

Please or to participate in this conversation.