api / src /utils /logging.py
Chandima Prabhath
Refactor code structure for improved readability and maintainability
10b392a
raw
history blame contribute delete
431 Bytes
# src/utils/logging.py
import logging
from config.settings import LOG_LEVEL
def setup_logging():
"""Configures basic logging for the application."""
logging.basicConfig(level=LOG_LEVEL, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
logging.getLogger("httpx").setLevel(logging.WARNING) # Suppress chatty libraries
logging.getLogger("httpcore").setLevel(logging.WARNING) # Suppress chatty libraries