Add logging configuration and middleware for improved request tracking

This commit is contained in:
JSC
2025-07-25 10:54:30 +02:00
parent 2860008a6d
commit b6d1ef2a27
7 changed files with 137 additions and 4 deletions

View File

@@ -16,6 +16,11 @@ class Settings(BaseSettings):
RELOAD: bool = True
LOG_LEVEL: str = "info"
LOG_FILE: str = "logs/app.log"
LOG_MAX_SIZE: int = 10 * 1024 * 1024
LOG_BACKUP_COUNT: int = 5
LOG_FORMAT: str = "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
DATABASE_URL: str = "sqlite+aiosqlite:///data/soundboard.db"
DATABASE_ECHO: bool = False