public static function hasLogger($logger)
    {
        if ($logger instanceof Logger) {
            $index = array_search($logger, self::$loggers, true);

            return false !== $index;
        } else {
            return isset(self::$loggers[$logger]);
        }
    }
public static function hasLogger($logger)
    {
        if ($logger instanceof Logger) {
            $index = array_search($logger, self::$loggers, true);

            return false !== $index;
        } else {
            return isset(self::$loggers[$logger]);
        }
    }
public static function hasLogger ( $ logger ) { if ( $ logger instanceof Logger ) { $ index = array_search ( $ logger , self :: $ loggers , true ) ; return false !== $ index ; } else { return isset ( self :: $ loggers [ $ logger ] ) ; } }
Checks if such logging channel exists by name or instance

@param string|Logger $logger Name or logger instance
Checks if such logging channel exists by name or instance