src/LoggerFactory.php
public static function getHandler(array $config = []): AbstractHandler
    {
        if (!empty($config['instance'])) {
            $handler = $config['instance'];
            unset($config['instance']);
        } else {
            $handler = StreamHandler::class;
        }
        return new $handler($config);
    }
public static function getHandler(array $config = []): AbstractHandler
    {
        if (!empty($config['instance'])) {
            $handler = $config['instance'];
            unset($config['instance']);
        } else {
            $handler = StreamHandler::class;
        }
        return new $handler($config);
    }
public static function getHandler ( array $ config = [ ] ) : AbstractHandler { if ( ! empty ( $ config [ 'instance' ] ) ) { $ handler = $ config [ 'instance' ] ; unset ( $ config [ 'instance' ] ) ; } else { $ handler = StreamHandler :: class ; } return new $ handler ( $ config ) ; }
Initializes a handler instance.
If the configuration is empty a default handler is returned.
All settings except 'instance' are passed to the handler constructor.
If declared, an 'instance' value must be a fully qualified class name.

@param array $config     Handler settings
@return AbstractHandler
Initializes a handler instance . If the configuration is empty a default handler is returned . All settings except instance are passed to the handler constructor . If declared an instance value must be a fully qualified class name .