You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
818 B
32 lines
818 B
<?php |
|
|
|
use Monolog\Handler\StreamHandler; |
|
use Monolog\Level; |
|
|
|
return [ |
|
'default' => env('LOG_CHANNEL', 'stack'), |
|
'deprecations' => [ |
|
'channel' => env('LOG_DEPRECATIONS_CHANNEL', 'null'), |
|
'trace' => false, |
|
], |
|
'channels' => [ |
|
'stack' => [ |
|
'driver' => 'stack', |
|
'channels' => ['single'], |
|
'ignore_exceptions' => false, |
|
], |
|
'single' => [ |
|
'driver' => 'single', |
|
'path' => storage_path('logs/laravel.log'), |
|
'level' => env('LOG_LEVEL', 'error'), |
|
], |
|
'null' => [ |
|
'driver' => 'monolog', |
|
'handler' => StreamHandler::class, |
|
'with' => [ |
|
'stream' => '/dev/null', |
|
'level' => Level::Debug, |
|
], |
|
], |
|
], |
|
];
|
|
|