def METHOD_NAME(
    logfilename: str = "bluemira.log", *, level: Union[str, int] = "INFO"
) -> logging.Logger:
    """
    Create logger with two handlers.
    Parameters
    ----------
    logfilename:
        Name of file to write logs to, default = bluemira.log
    level:
        The initial logging level to be printed to the console, default = INFO.
    Returns
    -------
    The logger to be used
    Notes
    -----
    set to debug initially
    """
    root_logger = logging.getLogger("")
    bm_logger = logging.getLogger("bluemira")
    py_level = _convert_log_level(level).value
    # what will be shown on screen
    on_screen_handler = logging.StreamHandler(stream=sys.stderr)
    on_screen_handler.setLevel(py_level)
    # what will be written to a file
    recorded_handler = logging.FileHandler(logfilename)
    recorded_formatter = logging.Formatter(
        fmt="%(asctime)s %(message)s", datefmt="%Y-%m-%d %H:%M:%S"
    )
    recorded_handler.setLevel(logging.DEBUG)
    recorded_handler.setFormatter(recorded_formatter)
    bm_logger.setLevel(logging.DEBUG)
    root_logger.addHandler(on_screen_handler)
    root_logger.addHandler(recorded_handler)
    return bm_logger