eur-rsm / laravel-logging
There is no license information available for the latest version (2.1.0) of this package.
Enrich laravel logging
This package's canonical repository appears to be gone and the package has been frozen as a result. Email us for help if needed.
Package info
github.com/eur-rsm/laravel-logging
Type:laravel-library
pkg:composer/eur-rsm/laravel-logging
2.1.0
2025-05-23 12:30 UTC
Requires
- php: >=8.1
- illuminate/auth: ^10.0 || ^11.0 || ^12.0
- illuminate/log: ^10.0 || ^11.0 || ^12.0
- monolog/monolog: ^3.0
README
Enrich monolog logs with laravel context
Installation
Add the Logger as 'tap' override in config/logging.php.
return [
// ...
'single' => [
'driver' => 'single',
'path' => storage_path('logs/laravel.log'),
'level' => 'debug',
'tap' => [\EUR\RSM\LaravelLogging\Tap\ConfiguredProcessororsTap::class],
],
// ...
];
Using the ECS Formatter
To use the ECS formatter simply override the formatter in config/logging.php.
return [
// ...
'single' => [
'driver' => 'single',
'path' => storage_path('logs/laravel.log'),
'level' => 'debug',
'formatter' => \EUR\RSM\LaravelLogging\Formatter\ElasticCommonSchemaFormatter::class,
],
// ...
];
[Optional] Override config
Publish the config via php artisan vendor:publish and configure the processers to
your liking.