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.

Installs: 4 864

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:laravel-library

pkg:composer/eur-rsm/laravel-logging

2.1.0 2025-05-23 12:30 UTC

This package is auto-updated.

Last update: 2025-10-30 09:39:21 UTC


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.