def METHOD_NAME(cls) -> None:
    cls.moduleName = os.path.splitext(inspect.getfile(cls))[0]
    cls.log = logging.getLogger(cls.__name__)
    # Set logging to file and stdout if the LOG_LEVEL environment variable
    # is set.
    if os.getenv("LOG_LEVEL"):
        # Set up formatter.
        log_fmt = f"{cls.__name__}.%(funcName)s:%(levelname)s:%(asctime)s:" " %(message)s"
        formatter = logging.Formatter(log_fmt)
        # Set up the file handler.
        log_file_name = f"{cls.moduleName}.log"
        file_handler = logging.FileHandler(log_file_name)
        file_handler.setFormatter(formatter)
        cls.log.addHandler(file_handler)
        # Set the logging level from the environment variable, defaulting
        # to INFO if it is not a valid level.
        level = logging._nameToLevel.get(os.getenv("LOG_LEVEL"), logging.INFO)
        cls.log.setLevel(level)