19 lines
668 B
PHP
19 lines
668 B
PHP
<?php
|
|
use Psr\Container\ContainerInterface;
|
|
|
|
return [
|
|
Psr\Log\LoggerInterface::class => function(ContainerInterface $container) {
|
|
return new Monolog\Logger('app', [
|
|
(new Monolog\Handler\RotatingFileHandler('/logs/error.log'))
|
|
->setFormatter(new Monolog\Formatter\LineFormatter(null, null, true, true)),
|
|
], [
|
|
new Monolog\Processor\UidProcessor(),
|
|
new Monolog\Processor\MemoryUsageProcessor(),
|
|
new Monolog\Processor\MemoryPeakUsageProcessor(),
|
|
new Monolog\Processor\PsrLogMessageProcessor(),
|
|
new Monolog\Processor\IntrospectionProcessor(),
|
|
]);
|
|
|
|
}
|
|
];
|