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;
    }
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;
    }
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 ; }
Extend monolog with a processor.

@param \Psr\Container\ContainerInterface                      $container
@param null|\Monolog\Logger|\Viserio\Component\Log\LogManager $logManager

@return null|\Monolog\Logger|\Viserio\Component\Log\Logger
Extend monolog with a processor .