diff --git a/composer.json b/composer.json index 0eaf3f0..ef50861 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ ], "require": { "php": "^8.2", - "cego/filebeat-logger": "^2.0.5", + "cego/filebeat-logger": "^2.0.6", "illuminate/support": "^7.0|^8.0|^9.0|^10.0", "illuminate/contracts": "^7.0|^8.0|^9.0|^10.0", "ext-json": "*", diff --git a/src/FilebeatLogging/FilebeatLoggingServiceProvider.php b/src/FilebeatLogging/FilebeatLoggingServiceProvider.php index 876e709..6844b42 100644 --- a/src/FilebeatLogging/FilebeatLoggingServiceProvider.php +++ b/src/FilebeatLogging/FilebeatLoggingServiceProvider.php @@ -26,7 +26,7 @@ public function register(): void 'extras' => json_decode(env('FILEBEAT_LOGGER_EXTRAS', '{}'), associative: true, flags: JSON_THROW_ON_ERROR), 'stream' => env('FILEBEAT_LOGGER_STREAM', 'php://stdout'), 'rotating' => env('FILEBEAT_LOGGER_ROTATING', false), - 'httpContextProcessor' => new RequestProcessor(), + 'httpContextProcessor' => RequestProcessor::class, 'via' => FilebeatLoggerFactory::class, ];