From c9b5c9b20f6d34398f0db88470536b90e0096499 Mon Sep 17 00:00:00 2001 From: Mads Jon Nielsen Date: Fri, 26 Nov 2021 11:00:32 +0100 Subject: [PATCH] Fix bug in extras functionality --- src/FilebeatLoggerFactory.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/FilebeatLoggerFactory.php b/src/FilebeatLoggerFactory.php index 08366ee..8abdb22 100644 --- a/src/FilebeatLoggerFactory.php +++ b/src/FilebeatLoggerFactory.php @@ -14,7 +14,7 @@ public function __invoke(array $config): FilebeatLogger $channel = $config['channel'] ?? 'missing channel name'; return ($config['rotating'] ?? false) - ? RotatingFilebeatLogger::createLogger($channel, $config['stream'] ?? 'storage/logs/laravel.log') - : FilebeatLogger::createLogger($channel, $config['stream'] ?? 'php://stdout'); + ? RotatingFilebeatLogger::createLogger($channel, $config['stream'] ?? 'storage/logs/laravel.log', $config['extras'] ?? []) + : FilebeatLogger::createLogger($channel, $config['stream'] ?? 'php://stdout', $config['extras'] ?? []); } }