Source code for lmcache.logging
import logging
from logging import Logger
logging.basicConfig(
format="\033[33m%(levelname)s LMCache: \033[0m%(message)s "
"[%(asctime)s] -- %(pathname)s:%(lineno)d",
level=logging.INFO,
)
[docs]
def init_logger(name: str) -> Logger:
logger = logging.getLogger(name)
logger.setLevel(logging.DEBUG)
return logger