"""Logging configuration for log-alert application.""" import logging import os def setup_logging(): """Configure root logger for the application.""" logging.basicConfig( level=os.environ.get("LOGLEVEL", "INFO"), format="%(asctime)s [%(levelname)s] %(name)s: %(message)s", ) def get_logger(name: str) -> logging.Logger: """Get a logger instance with the given name.""" return logging.getLogger(name)