"""Logging setup shared across the app.""" import logging _CONFIGURED = False def configure_logging(level=logging.INFO): """Configure root logging once with a concise, timestamped format.""" global _CONFIGURED if _CONFIGURED: return logging.basicConfig( level=level, format="%(asctime)s %(levelname)-7s %(name)s | %(message)s", datefmt="%H:%M:%S", ) _CONFIGURED = True