# AUTOGENERATED! DO NOT EDIT! File to edit: ../nbs/90-utils.ipynb.

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

# %% ../nbs/90-utils.ipynb 1
from loguru import logger

# %% ../nbs/90-utils.ipynb 3
def set_logger(
    level="INFO",
    *,
    format="{name}.{function}:{line} {message}",
    # format="{level} {name}.{function}:{line} {message}",
):
    import sys

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