Logging
Changing Level
You can change the log level by passing log_level
:
Debug Logging
If you would like to enable debug logging, instead of manually passing log_level
, you should call hoist.debug
:
Note
hoist.debug()
works for all of Hoist, not just servers.
Tracing
There are some cases where you might want to trace where some debug logs are actually called from. You can enable this by passing trace=True
to debug
:
Uvicorn Logging
In rare cases, some important logs may only show up on the uvicorn logger instead of Hoist's. To enable uvicorn
's logging, pass enable_uvicorn=True
:
Getting The Logger
All Hoist logging is done under the hoist
logger: