grillazz / fastapi-sqlalchemy-asyncpg

Integration of FastAPI framework supported by Pydantic with SQLAlchemy ORM and PostgreSQL on asyncpg driver
MIT License
401 stars 54 forks source link

revisit logging #75

Closed grillazz closed 1 year ago

grillazz commented 1 year ago

https://rich.readthedocs.io/en/stable/logging.html

implementation samples https://github.com/nsidnev/fastapi-realworld-example-app/blob/master/app/core/logging.py

example log.ini https://github.com/RedHatInsights/policies-notifications/blob/master/logging.ini

additional reading

[QUESTION] How to do logging in a FastApi container, any logging does not appear · Issue #19 · tiangolo/uvicorn-gunicorn-fastapi-docker