function(ContainerInterface $container) { return new Monolog\Logger('ui', [ new Monolog\Handler\FilterHandler( new Monolog\Handler\RotatingFileHandler('/logs/ui.debug.log'), Monolog\Level::Debug, Monolog\Level::Notice ), new Monolog\Handler\FilterHandler( (new Monolog\Handler\RotatingFileHandler('/logs/ui.error.log')) ->setFormatter(new Monolog\Formatter\LineFormatter(null, null, true)), Monolog\Level::Warning, Monolog\Level::Error ), new Monolog\Handler\FilterHandler( new Monolog\Handler\RotatingFileHandler('/logs/ui.critical.log'), Monolog\Level::Critical ) ], [ $container->get(Monolog\Processor\PsrLogMessageProcessor::class), $container->get(Monolog\Processor\WebProcessor::class), $container->get(Monolog\Processor\IntrospectionProcessor::class), $container->get(Monolog\Processor\MemoryUsageProcessor::class), $container->get(Monolog\Processor\MemoryPeakUsageProcessor::class) ]); } ];