From 5fd6eb29554b6a19c5d8c3c73db302b9bbd39ee1 Mon Sep 17 00:00:00 2001 From: Alexis Saettler Date: Fri, 8 Oct 2021 23:11:25 +0200 Subject: [PATCH] feat: add new stackerrorlog log channel (#5578) --- config/logging.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/config/logging.php b/config/logging.php index dec99919006..94c463bd2e6 100644 --- a/config/logging.php +++ b/config/logging.php @@ -36,6 +36,10 @@ 'channels' => ['single'], 'ignore_exceptions' => false, ], + 'stackerrorlog' => [ + 'driver' => 'stack', + 'channels' => ['errorlog', 'papertrail', 'sentry'], + ], 'single' => [ 'driver' => 'single', 'path' => storage_path('logs/laravel.log'), @@ -54,10 +58,6 @@ 'emoji' => ':boom:', 'level' => 'critical', ], - 'papertrailsyslog' => [ - 'driver' => 'stack', - 'channels' => ['papertrail', 'syslog'], - ], 'papertrailerrorlog' => [ 'driver' => 'stack', 'channels' => ['papertrail', 'errorlog'], @@ -71,6 +71,11 @@ 'port' => env('PAPERTRAIL_PORT'), ], ], + 'sentry' => [ + 'driver' => 'sentry', + 'level' => 'debug', + 'bubble' => true, + ], 'stderr' => [ 'driver' => 'monolog', 'handler' => StreamHandler::class,