[46c9de]: / src / utils / logger.py

Download this file

9 lines (7 with data), 233 Bytes

1
2
3
4
5
6
7
8
9
from functools import lru_cache
from logging import Logger
from .logger_config import setup_logger
@lru_cache()
def get_logger(name: str) -> Logger:
"""Get or create a logger with the given name"""
return setup_logger(name)