2016-08-08 04:17:14 -05:00
|
|
|
<?php
|
2017-10-12 03:13:20 -05:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2016-08-08 04:56:19 -05:00
|
|
|
use Monolog\Handler\RotatingFileHandler;
|
|
|
|
use Monolog\Logger;
|
|
|
|
|
2016-08-08 04:17:14 -05:00
|
|
|
return [
|
|
|
|
|
|
|
|
'logger' => [
|
2016-08-08 04:56:19 -05:00
|
|
|
'formatters' => [
|
|
|
|
'dashed' => [
|
|
|
|
'format' => '[%datetime%] %channel%.%level_name% - %message% %context%' . PHP_EOL,
|
|
|
|
'include_stacktraces' => true,
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
'handlers' => [
|
|
|
|
'rotating_file_handler' => [
|
|
|
|
'class' => RotatingFileHandler::class,
|
|
|
|
'level' => Logger::INFO,
|
|
|
|
'filename' => 'data/log/shlink_log.log',
|
|
|
|
'max_files' => 30,
|
|
|
|
'formatter' => 'dashed',
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
2016-08-08 04:17:14 -05:00
|
|
|
'loggers' => [
|
|
|
|
'Shlink' => [
|
2016-08-08 04:56:19 -05:00
|
|
|
'handlers' => ['rotating_file_handler'],
|
2016-08-08 04:17:14 -05:00
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
];
|