CoolFace
Apppublic

internationalscholarsprogram/handbook-engine

sourceHugging Faceupdated 5mo agoView on Hugging Face
0likes
logging.py11 linesDownload Raw Back to core
1"""Centralised logging setup."""2 3import logging4import sys5 6 7def setup_logging(debug: bool = False) -> None:8    level = logging.DEBUG if debug else logging.INFO9    fmt = "%(asctime)s [%(levelname)s] %(name)s: %(message)s"10    logging.basicConfig(stream=sys.stdout, level=level, format=fmt, force=True)11