CoolFace
Apppublic

S-Dreamer/CodeCraftLab

sourceHugging Facemitupdated 4mo agoView on Hugging Face
0likes
logging.py19 linesDownload Raw Back to core
1"""Logging configuration for the Streamlit application.2 3This module intentionally lives at core/logging.py so it does not shadow4Python's standard-library logging module.5"""6 7from __future__ import annotations8 9import logging10 11 12def configure_logging(level: int = logging.INFO) -> logging.Logger:13    """Configure basic application logging and return a module logger."""14    logging.basicConfig(15        level=level,16        format="%(asctime)s | %(levelname)s | %(name)s | %(message)s",17    )18    return logging.getLogger(__name__)19