From 831267b2aba60c6e2c801a5a191c95c18a22170f Mon Sep 17 00:00:00 2001 From: James Cole Date: Thu, 13 Aug 2020 13:55:16 +0200 Subject: [PATCH] Fix audit logger. --- config/logging.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/config/logging.php b/config/logging.php index 509f158197..6ac3c3ee89 100644 --- a/config/logging.php +++ b/config/logging.php @@ -58,7 +58,7 @@ return [ ], 'audit' => [ 'driver' => 'stack', - 'channels' => ['daily_audit', 'stdout'], + 'channels' => ['daily_audit', 'stdout_daily'], ], 'single' => [ 'driver' => 'single', @@ -88,6 +88,12 @@ return [ 'level' => 'info', 'days' => 90, ], + 'stdout_daily' => [ + 'driver' => 'single', + 'path' => 'php://stdout', + 'tap' => [AuditLogger::class], + 'level' => 'info', + ], 'dailytest' => [ 'driver' => 'daily', 'path' => storage_path('logs/test-ff3-' . PHP_SAPI . '.log'),