feat(log): add logger

This commit is contained in:
MingxuanGame
2025-07-28 10:38:40 +00:00
parent e369944d87
commit 1be3388524
13 changed files with 212 additions and 174 deletions

View File

@@ -142,8 +142,15 @@ async def health_check():
if __name__ == "__main__":
from app.log import logger # noqa: F401
import uvicorn
uvicorn.run(
"main:app", host=settings.HOST, port=settings.PORT, reload=settings.DEBUG
"main:app",
host=settings.HOST,
port=settings.PORT,
reload=settings.DEBUG,
log_config=None, # 禁用uvicorn默认日志配置
access_log=True, # 启用访问日志
)