def METHOD_NAME(cls, logger: logging.Logger) -> None:
    """Set logging level for the input logger.
    Args:
        logger: Logger whose level is to be set.
    """
    if logger.level is logging.NOTSET:
        try:
            logger.setLevel(cls.log.level)
        except Exception as ex:  # pylint: disable=broad-except
            logger.warning(
                'Error while trying to set the level for the "%s" logger to %s. %s.',
                logger,
                os.getenv("LOG_LEVEL"),
                str(ex),
            )
    if not any(isinstance(handler, logging.StreamHandler) for handler in logger.handlers):
        logger.addHandler(logging.StreamHandler())
        logger.propagate = False