FastAPI logging

Phil Girard
2 min readApr 18, 2020

Here is how I setup my python logging for a fastAPI project.

I have the following fastAPI file architecture:

main.py
logging.conf
uicheckapp/
--db.py
--services.py
...

First I create a logging.conf file at the root of the project.

logging.conf

--

--