Including and excluding log files

Before you're able to configure this, make sure to first publish the configuration file.

Log Viewer includes all Laravel logs inside storage/logs folder by default. Often times you may have other logs in other places, or you might want to hide certain logs from Log Viewer. This can be configured inside config/log-viewer.php.

Keep in mind, Log Viewer only supports Laravel logs at the moment.

Including file paths for other log files may display them as empty in the Log Viewer, simply because it won't find any Laravel-formatted logs inside.

Including additional log files

You can include additional log files inside Log Viewer by adding glob patterns to the 'include_files' attribute:

    /*    |--------------------------------------------------------------------------    | Include file patterns    |--------------------------------------------------------------------------    |    */    'include_files' => [        '*.log',        '**/*.log',        // '/absolute/paths/supported',    ],    

Excluding log files

You can hide certain files from Log Viewer by providing glob patterns to the 'exclude_files' attribute:

    /*    |--------------------------------------------------------------------------    | Exclude file patterns.    |--------------------------------------------------------------------------    | This will take precedence over included files.    |    */    'exclude_files' => [        // 'my_secret.log'    ],    


If you have any questions, feedback, or need any help setting up Log Viewer within your project, feel free to reach out via GitHub Discussions or GitHub Issues .