diff --git a/app/Logging/NexusFormatter.php b/app/Logging/NexusFormatter.php index 659adee6..5732af62 100644 --- a/app/Logging/NexusFormatter.php +++ b/app/Logging/NexusFormatter.php @@ -15,7 +15,7 @@ class NexusFormatter protected function formatter() { $format = "[%datetime%] [" . REQUEST_ID . "] %channel%.%level_name%: %message% %context% %extra%\n"; - return tap(new LineFormatter($format, null, true, true), function ($formatter) { + return tap(new LineFormatter($format, 'Y-m-d H:i:s', true, true), function ($formatter) { $formatter->includeStacktraces(); }); } diff --git a/config/logging.php b/config/logging.php index fd559d39..7f0a0fc5 100644 --- a/config/logging.php +++ b/config/logging.php @@ -37,7 +37,6 @@ return [ 'channels' => [ 'stack' => [ 'driver' => 'stack', - 'tab' => [\App\Logging\NexusFormatter::class], 'channels' => ['daily'], 'ignore_exceptions' => false, ], @@ -52,7 +51,7 @@ return [ 'driver' => 'daily', 'path' => env('LOG_FILE', '/tmp/nexus.log'), 'level' => env('LOG_LEVEL', 'debug'), - 'tab' => [\App\Logging\NexusFormatter::class], + 'tap' => [\App\Logging\NexusFormatter::class], 'days' => 14, ],