Skip to content

Commit aed682e

Browse files
authored
[9.x] Make it easier to support Papertrail on Vapor out of the box (laravel#5780)
* Make it easier to support Papertrail on Vapor * Fixed style
1 parent b2dbbaf commit aed682e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

config/logging.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,11 @@
7878
'papertrail' => [
7979
'driver' => 'monolog',
8080
'level' => env('LOG_LEVEL', 'debug'),
81-
'handler' => SyslogUdpHandler::class,
81+
'handler' => env('LOG_PAPERTRAIL_HANDLER', SyslogUdpHandler::class),
8282
'handler_with' => [
8383
'host' => env('PAPERTRAIL_URL'),
8484
'port' => env('PAPERTRAIL_PORT'),
85+
'connectionString' => 'tls://'.env('PAPERTRAIL_URL').':'.env('PAPERTRAIL_PORT'),
8586
],
8687
],
8788

0 commit comments

Comments
 (0)