Closed alercelik closed 2 years ago
This library uses a logger with name streamlit_webrtc
or its child loggers.
The code below is a sample to get the logger and set the log level.
https://github.com/whitphx/streamlit-webrtc/blob/b80878229378a090510851f32c400234da60523b/app.py#L684-L685
Ah, aiortc
, a library streamlit-webrtc
is using inside it, also has its logger with a different namespace.
So if you want to set the log level as warning on both loggers, the code below would be the sample.
st_webrtc_logger = logging.getLogger("streamlit_webrtc")
st_webrtc_logger.setLevel(logging.WARNING)
aioice_logger = logging.getLogger("aioice")
aioice_logger.setLevel(logging.WARNING)
Added the "logging" section in README: https://github.com/whitphx/streamlit-webrtc#logging
Hello, how can I set log level? I want to set it to WARNING for this library and INFO for my own program.