Skip to content

Instantly share code, notes, and snippets.

@marechenok
marechenok / logging.php
Last active September 16, 2020 12:45
Laravel Papertrail config setup
<?php
'channel' => [
'driver' => 'monolog',
'handler' => Monolog\Handler\SyslogUdpHandler::class,
'formatter' => Monolog\Formatter\LineFormatter::class,
'level' => 'debug',
'with' =>[
'host' => env('PAPERTRAIL_HOST'),
'port' => env('PAPERTRAIL_PORT'),
]