juribot-backend / core /logging_config.py
entidi2608's picture
Initial backend deployment
a6fd1a3
raw
history blame contribute delete
443 Bytes
# core/logging_config.py
import logging
def setup_logging():
"""Sets up the basic logging configuration for the application."""
logging.basicConfig(
level=logging.INFO,
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s'
)
# Tắt logging quá chi tiết từ một số thư viện
logging.getLogger("httpx").setLevel(logging.WARNING)
logging.getLogger("httpcore").setLevel(logging.WARNING)