Files
enginex-bi_series-translation/logger.py

13 lines
276 B
Python
Raw Normal View History

2025-08-26 19:04:22 +08:00
# -*- coding: utf-8 -*-
import logging
import os
logging.basicConfig(
format="%(asctime)s %(name)-12s %(levelname)-4s %(message)s",
datefmt="%Y-%m-%d %H:%M:%S",
level=os.environ.get("LOGLEVEL", "INFO"),
)
def get_logger(file):
return logging.getLogger(file)