src/Monolog/Monolog.php
public static function getLogger(string $channel): Logger
    {
        if (empty(static::$loggers[$channel])) {
            static::$loggers[$channel] = new Logger($channel);
        }

        return static::$loggers[$channel];
    }
public static function getLogger(string $channel): Logger
    {
        if (empty(static::$loggers[$channel])) {
            static::$loggers[$channel] = new Logger($channel);
        }

        return static::$loggers[$channel];
    }
public static function getLogger ( string $ channel ) : Logger { if ( empty ( static :: $ loggers [ $ channel ] ) ) { static :: $ loggers [ $ channel ] = new Logger ( $ channel ) ; } return static :: $ loggers [ $ channel ] ; }
Returns the Logger identified by the channel.

@param string $channel The log channel.

@return Logger
Returns the Logger identified by the channel .