Skip to content

Commit

Permalink
feat: add new stackerrorlog log channel (#5578)
Browse files Browse the repository at this point in the history
  • Loading branch information
asbiin committed Oct 8, 2021
1 parent 0e989fe commit 5fd6eb2
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions config/logging.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand All @@ -54,10 +58,6 @@
'emoji' => ':boom:',
'level' => 'critical',
],
'papertrailsyslog' => [
'driver' => 'stack',
'channels' => ['papertrail', 'syslog'],
],
'papertrailerrorlog' => [
'driver' => 'stack',
'channels' => ['papertrail', 'errorlog'],
Expand All @@ -71,6 +71,11 @@
'port' => env('PAPERTRAIL_PORT'),
],
],
'sentry' => [
'driver' => 'sentry',
'level' => 'debug',
'bubble' => true,
],
'stderr' => [
'driver' => 'monolog',
'handler' => StreamHandler::class,
Expand Down

0 comments on commit 5fd6eb2

Please sign in to comment.