How do I use --log-config for uvicorn and my apps logging? #2460
Unanswered
ChrisDAT20
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I do not want to introduce my own approach on how to configure loggers. As uvicorn provides a possibility to configure logging via --log-config, I want to define all loggers there. Within my app, I use logging.info(...) and occasionally logging.getLogger(loggerName). So most of the time the log messages should go to the root logger.
But thats not the case. uvicorns log messages are routed according to the log cfg specified via --log-config, but the other log messages arrive nowhere.
Why is the root logger not used when logging with "logging.info(...)"?
Beta Was this translation helpful? Give feedback.
All reactions