diff --git a/config/logging.php b/config/logging.php index f874cc37..f57cbc20 100644 --- a/config/logging.php +++ b/config/logging.php @@ -1,6 +1,7 @@ 'critical', ], + 'papertrail' => [ + 'driver' => 'monolog', + 'handler' => SyslogUdpHandler::class, + 'handler_with' => [ + 'host' => env('PAPERTRAIL_URL'), + 'port' => env('PAPERTRAIL_PORT'), + ], + ], + 'stderr' => [ 'driver' => 'monolog', 'handler' => StreamHandler::class, @@ -76,15 +86,6 @@ return [ 'driver' => 'errorlog', 'level' => 'debug', ], - - 'papertrail' => [ - 'driver' => 'monolog', - 'handler' => Monolog\Handler\SyslogUdpHandler::class, - 'handler_with' => [ - 'host' => env('PAPERTRAIL_URL'), - 'port' => env('PAPERTRAIL_PORT'), - ], - ], ], ];