public static function extendLogManager(ContainerInterface $container, $logManager = null)
    {
        $options = self::resolveOptions($container->get('config'));

        if ($logManager !== null && $options['collector']['logs'] === true) {
            $logManager->pushProcessor(new DebugProcessor());
        }

        return $logManager;
    }