TimedRotatingFileHandler thread safe in high concurrency env (fastapi with gunicorn)
Context I have a python API with dozen of routes. I created a custom logger to log every I/O of my app. The file which is the destination of my TimedRotatingFileHandler is missing a lot of logs that appear in the stderr (using StreamHandler). I figured it must be because of concurrency since my app […]