private function configureLogger(array $mergedConfig, ContainerBuilder $container)
    {
        $this->configureLoggerFormatters($container);

        $loggerMiddleware = new Definition(LoggerMiddleware::class, [
            new Reference($mergedConfig['logger_formatter']),
            new Reference('logger')
        ]);
        $loggerMiddleware->setPublic(false);
        $loggerMiddleware->addTag('monolog.logger', ['channel' => 'command_bus']);

        $container->setDefinition('tactician.middleware.logger', $loggerMiddleware);
    }