Files
unified-restaurant-original/backend/config/logging.php
2021-04-30 17:41:02 -04:00

52 lines
1.4 KiB
PHP

<?php
use Monolog\Handler\NullHandler;
use Monolog\Handler\StreamHandler;
use Monolog\Handler\SyslogUdpHandler;
return [
/*
|--------------------------------------------------------------------------
| Default Log Channel
|--------------------------------------------------------------------------
|
| This option defines the default log channel that gets used when writing
| messages to the logs. The name specified in this option should match
| one of the channels defined in the "channels" configuration array.
|
*/
'default' => env('LOG_CHANNEL', 'stack'),
'channels' => [
'stack' => [
'driver' => 'stack',
'channels' => ['daily', 'stderr'],
],
'daily' => [
'driver' => 'daily',
'path' => storage_path('logs/lumen_log.html'),
'formatter' => Monolog\Formatter\HtmlFormatter::class,
'level' => 'debug',
'days' => 14,
],
'stderr' => [
'driver' => 'monolog',
'handler' => StreamHandler::class,
'formatter' => Monolog\Formatter\LineFormatter::class,
'level' => 'debug',
'with' => [
'stream' => 'php://stderr',
],
],
'null' => [
'driver' => 'monolog',
'handler' => NullHandler::class,
],
],
];