unify logging with rich

This commit is contained in:
Jakub Miazek
2023-04-10 21:42:06 +02:00
parent 429909344d
commit aa1b9ec867
3 changed files with 14 additions and 27 deletions

View File

@@ -3,9 +3,9 @@ from fastapi import FastAPI
from app.api.nonsense import router as nonsense_router
from app.api.shakespeare import router as shakespeare_router
from app.api.stuff import router as stuff_router
from app.utils import get_logger
from app.logging import AppLogger
logger = get_logger(__name__)
logger = AppLogger.__call__().get_logger()
app = FastAPI(title="Stuff And Nonsense API", version="0.5")