src/MonologFactory.php
/**
     * @param Logger $Logger Logger to configure
     * @param HandlerInterface $AbstractHandler Handler to configure
     * @param array $config formatter configuration
     *
     * @throws FormatterClassMissingException
     * @throws SectionArgsMissingException
     */
@param Logger $Logger Logger to configure
@param HandlerInterface $AbstractHandler Handler to configure
@param array $config formatter configuration


@param Logger $Logger Logger to configure @param HandlerInterface $AbstractHandler Handler to configure @param array $config formatter configuration
protected function configureFormatter(Logger $Logger, HandlerInterface $AbstractHandler, array $config) {
        if (!isset($config[Config::FORMATTER_CLASS])) {
            throw new FormatterClassMissingException('Formatter class is missing for [' . $Logger->getName() . '] log');
        }
        if (!isset($config[Config::FORMATTER_ARGS])) {
            throw new SectionArgsMissingException('Section args is missing for formatter [' . $Logger->getName() .
                '] log');
        }
        $Reflector = new ReflectionClass($config[Config::FORMATTER_CLASS]);
        $AbstractFormatter = $Reflector->newInstanceArgs($config[Config::FORMATTER_ARGS]);
        $AbstractHandler->setFormatter($AbstractFormatter);
    }
protected function configureFormatter ( Logger $ Logger , HandlerInterface $ AbstractHandler , array $ config ) { if ( ! isset ( $ config [ Config :: FORMATTER_CLASS ] ) ) { throw new FormatterClassMissingException ( 'Formatter class is missing for [' . $ Logger -> getName ( ) . '] log' ) ; } if ( ! isset ( $ config [ Config :: FORMATTER_ARGS ] ) ) { throw new SectionArgsMissingException ( 'Section args is missing for formatter [' . $ Logger -> getName ( ) . '] log' ) ; } $ Reflector = new ReflectionClass ( $ config [ Config :: FORMATTER_CLASS ] ) ; $ AbstractFormatter = $ Reflector -> newInstanceArgs ( $ config [ Config :: FORMATTER_ARGS ] ) ; $ AbstractHandler -> setFormatter ( $ AbstractFormatter ) ; }
@param Logger $Logger Logger to configure
 @param HandlerInterface $AbstractHandler Handler to configure
 @param array $config formatter configuration
@param Logger $Logger Logger to configure @param HandlerInterface $AbstractHandler Handler to configure @param array $config formatter configuration
/** @var FormatterInterface $AbstractFormatter */