Spaces:
Runtime error
Runtime error
File size: 534 Bytes
4ee67e6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | """Logging configuration for the Streamlit application.
This module intentionally lives at core/logging.py so it does not shadow
Python's standard-library logging module.
"""
from __future__ import annotations
import logging
def configure_logging(level: int = logging.INFO) -> logging.Logger:
"""Configure basic application logging and return a module logger."""
logging.basicConfig(
level=level,
format="%(asctime)s | %(levelname)s | %(name)s | %(message)s",
)
return logging.getLogger(__name__)
|