def METHOD_NAME(msg: str, *args: Any, **kwargs: Any) -> None:
    if LOGGER:
        # skip stack frames when displaying log so the original logging frame is displayed
        stacklevel = 2
        if name == "exception":
            # exception has one more frame
            stacklevel = 3
        getattr(LOGGER, name)(msg, *args, **kwargs, stacklevel=stacklevel)