From aed682e0deeac10ba6465a398ef4cb4856a6d35e Mon Sep 17 00:00:00 2001 From: Beau Simensen Date: Thu, 27 Jan 2022 12:00:18 -0600 Subject: [PATCH] [9.x] Make it easier to support Papertrail on Vapor out of the box (#5780) * Make it easier to support Papertrail on Vapor * Fixed style --- config/logging.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/logging.php b/config/logging.php index 880cd922..fefe0885 100644 --- a/config/logging.php +++ b/config/logging.php @@ -78,10 +78,11 @@ return [ 'papertrail' => [ 'driver' => 'monolog', 'level' => env('LOG_LEVEL', 'debug'), - 'handler' => SyslogUdpHandler::class, + 'handler' => env('LOG_PAPERTRAIL_HANDLER', SyslogUdpHandler::class), 'handler_with' => [ 'host' => env('PAPERTRAIL_URL'), 'port' => env('PAPERTRAIL_PORT'), + 'connectionString' => 'tls://'.env('PAPERTRAIL_URL').':'.env('PAPERTRAIL_PORT'), ], ],