Initial commit of document-service

This commit is contained in:
2026-04-23 16:20:58 -05:00
commit 51d60f0032
30 changed files with 4357 additions and 0 deletions

13
app/logger.py Normal file
View File

@@ -0,0 +1,13 @@
import logging
from app.config import settings
def setup_logging():
"""Setup logging configuration"""
logging.basicConfig(
level=getattr(logging, settings.log_level.upper()),
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s'
)
def get_logger(name: str) -> logging.Logger:
"""Get logger with specified name"""
return logging.getLogger(name)