EVAL/logger.py
2023-03-22 09:34:52 +09:00

9 lines
188 B
Python

import logging
from env import settings
logger = logging.getLogger("EVAL")
if settings["LOG_LEVEL"] == "DEBUG":
logger.setLevel(logging.DEBUG)
else:
logger.setLevel(logging.INFO)