Skip to content

Commit

Permalink
feat: logging config
Browse files Browse the repository at this point in the history
zubkovmd committed Mar 3, 2024
1 parent f229e1d commit d19e917
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
@@ -6,7 +6,12 @@

import uvicorn

from uvicorn.config import LOGGING_CONFIG

from app.api.app import app



if __name__ == "__main__":
LOGGING_CONFIG["formatters"]["default"]["fmt"] = "%(asctime)s [%(name)s] %(levelprefix)s %(message)s"
uvicorn.run(app, host="0.0.0.0", port=8000)

0 comments on commit d19e917

Please sign in to comment.