freeleaps-authentication/app/utils/logger.py

8 lines
243 B
Python
Raw Normal View History

2025-10-29 07:07:47 +00:00
import logging
from app.utils.config import settings
formatter = "%(levelname)s: %(asctime)s - %(module)s - %(funcName)s - %(message)s"
logger = logging.getLogger(__name__)
logging.basicConfig(level=settings.LOGGING_LEVEL, format=formatter)