How to add data to all log records in Laravel 5.6?
How to add data to all log records in Laravel? answers how to add data to all log records in Laravel 5.5 and earlier. e.g. the following is added to AppServiceProvider::register(): $monolog = \Log::getMonolog(); $monolog->pushProcessor(function ($record) { $record['extra']['ip'] = \Request::getClientIp(); $record['extra']['path'] = \Request::path(); return $record; }); This doesn't work for Laravel 5.6. I looked through the documentation for 'creating custom channels' but didn't see any obvious way to get the above behavior. The error occurs from @php artisan package:discover -v Symfony