def get(cls, logger: Logger) -> logging.Logger: Validation.not_none(logger) if logger == cls.Logger.ROOT: return cls._LOGGER_ROOT elif logger == cls.Logger.OBSERVER: return cls._LOGGER_OBSERVER elif logger == cls.Logger.CONVERTER: return cls._LOGGER_CONVERTER else: raise NotImplementedError
def logger(cls, logger: Logger) -> logging.Logger: Validation.not_none(logger) if logger == cls.Logger.ROOT: return cls.__LOGGER_ROOT elif logger == cls.Logger.MCC: return cls.__LOGGER_MCC elif logger == cls.Logger.EVAL: return cls.__LOGGER_EVAL else: raise NotImplementedError