[ 'name' => Common\Logger\Processor\ExceptionWithNewLineProcessor::class, ], 'psr3' => [ 'name' => Processor\PsrLogMessageProcessor::class, ], 'request_id' => RequestId\MonologProcessor::class, ]; $formatter = [ 'name' => Formatter\LineFormatter::class, 'params' => [ 'format' => '[%datetime%] [%extra.request_id%] %channel%.%level_name% - %message%' . PHP_EOL, 'allow_inline_line_breaks' => true, ], ]; return [ 'logger' => [ 'Shlink' => [ 'name' => 'Shlink', 'handlers' => [ 'shlink_handler' => [ 'name' => Handler\RotatingFileHandler::class, 'params' => [ 'level' => Logger::INFO, 'filename' => 'data/log/shlink_log.log', 'max_files' => 30, 'file_permission' => 0666, ], 'formatter' => $formatter, ], ], 'processors' => $processors, ], 'Access' => [ 'name' => 'Access', 'handlers' => [ 'access_handler' => [ 'name' => Handler\StreamHandler::class, 'params' => [ 'level' => Logger::INFO, 'stream' => 'php://stdout', ], 'formatter' => $formatter, ], ], 'processors' => $processors, ], ], 'dependencies' => [ 'factories' => [ 'Logger_Shlink' => [DiContainerLoggerFactory::class, 'Shlink'], 'Logger_Access' => [DiContainerLoggerFactory::class, 'Access'], ], 'aliases' => [ 'logger' => 'Logger_Shlink', Logger::class => 'Logger_Shlink', LoggerInterface::class => 'Logger_Shlink', ], ], 'mezzio-swoole' => [ 'swoole-http-server' => [ 'logger' => [ 'logger-name' => 'Logger_Access', 'format' => '%h %l %u "%r" %>s %b', ], ], ], ];