How to use rich handler for logging


I want to replace the current log handler with the rich handler for logging (Logging Handler — Rich 9.9.0 documentation), as it provides better formatting and colorization.

Currently, when I use the rich handler, I get two outputs (one from streamlit’s own logger and one from the rich one).

How can I disable the streamlit one?

Hi @hadisotudeh -

This is an interesting request, can you make a GitHub issue? We have a configuration argument for the level of logging, so it seems like naturally we could provide an additional option there for disable, so that you could use your own solution.