feat: add log

This commit is contained in:
liuyuanchuang
2026-02-07 09:26:45 +08:00
parent 23e2160668
commit aec030b071
5 changed files with 218 additions and 2 deletions

View File

@@ -47,6 +47,10 @@ class Settings(BaseSettings):
host: str = "0.0.0.0"
port: int = 8053
# Logging Settings
log_dir: Optional[str] = None # Defaults to /app/logs in container or ./logs locally
log_level: str = "INFO" # DEBUG, INFO, WARNING, ERROR, CRITICAL
@property
def pp_doclayout_dir(self) -> Path:
"""Get the PP-DocLayout model directory path."""