# AUTOGENERATED! DO NOT EDIT! File to edit: ../nbs/05_util.ipynb.

# %% auto 0
__all__ = ['set_logger']

# %% ../nbs/05_util.ipynb 2
def set_logger(format="{level} {name}.{function}:{line} {message}"):
    import sys
    from loguru import logger

    logger.remove()
    logger.add(sys.stderr, format=format)
    return logger
