src/LoggerFactory.php
public static function getChannel(array $config = []): Channel
    {
        $channel = new Channel();
        $channel->setHandler(static::getHandler($config['handler'] ?? []));
        $channel->setFormatter(static::getFormatter($config['formatter'] ?? []));

        return $channel;
    }
public static function getChannel(array $config = []): Channel
    {
        $channel = new Channel();
        $channel->setHandler(static::getHandler($config['handler'] ?? []));
        $channel->setFormatter(static::getFormatter($config['formatter'] ?? []));

        return $channel;
    }
public static function getChannel ( array $ config = [ ] ) : Channel { $ channel = new Channel ( ) ; $ channel -> setHandler ( static :: getHandler ( $ config [ 'handler' ] ?? [ ] ) ) ; $ channel -> setFormatter ( static :: getFormatter ( $ config [ 'formatter' ] ?? [ ] ) ) ; return $ channel ; }
Initializes a Channel instance.

@param array $config     Channel settings
@return Channel
@throws \InvalidArgumentException
Initializes a Channel instance .