update: now logger.py based on loguru.

feature: now logs will output to file if set app.log_format to file. default path: logs/kohakuhub.log
This commit is contained in:
lxy
2025-10-24 23:02:02 +08:00
parent 88a2e3c328
commit 980c1462c1
7 changed files with 481 additions and 151 deletions

View File

@@ -360,6 +360,9 @@ def generate_hub_api_service(config: dict) -> str:
- KOHAKU_HUB_LFS_KEEP_VERSIONS=5
- KOHAKU_HUB_LFS_AUTO_GC=true
- KOHAKU_HUB_AUTO_MIGRATE=true # Auto-confirm database migrations (required for Docker)
- KOHAKU_HUB_LOG_LEVEL=INFO
- KOHAKU_HUB_LOG_FORMAT=terminal
- KOHAKU_HUB_LOG_DIR=logs/
## ===== Auth & SMTP Configuration =====
- KOHAKU_HUB_REQUIRE_EMAIL_VERIFICATION=false