mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-24 13:49:03 +03:00
32 lines
785 B
PHP
32 lines
785 B
PHP
<?php
|
|
use Monolog\Handler\RotatingFileHandler;
|
|
use Monolog\Logger;
|
|
|
|
return [
|
|
|
|
'logger' => [
|
|
'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',
|
|
],
|
|
],
|
|
|
|
'loggers' => [
|
|
'Shlink' => [
|
|
'handlers' => ['rotating_file_handler'],
|
|
],
|
|
],
|
|
],
|
|
|
|
];
|