def METHOD_NAME(cls, logger: "Logger"):
    """Add a logger to the list."""
    cls.__loggers.append(logger)
    # If there are any stored log lines, make sure that this new logger handles them.
    for log_type, line in cls.__unlogged_lines:
        logger.log(log_type, line)