Panel logger default level not working
It seems like the panel logger default level set to DEBUG. Shouldn't the default level be set to WARNING? Additionally, even though the level is set to DEBUG, it doesn't actually log the statements in the terminal.
Reproducer
app.py
import panel as pn
pn.extension()
import logging
logger = logging.getLogger('panel')
print(logger) ## Prints '<Logger panel (DEBUG)>'
print(logger.getEffectiveLevel()) ## Prints 10 (value of debug level)
button = pn.widgets.Button(name="Click me!")
slider = pn.widgets.IntSlider(start=0, end=10, value=5)
app = pn.Row(button, slider)
app.servable()
panel serve command
panel serve app.py
Expected behaviour
Show debug logs in terminal on button clicks and moving sliders
Actual behaviour
No debug logs show
+1. We also need a how-to guide on logging.
Hi, any updates here?
+1. We also need a how-to guide on logging.
I've contributed a how-to guide on logging. It's in the main branch and can be viewed at https://holoviz-dev.github.io/panel/how_to/configure_logging.html before Panel 1.4.0 release.
It might not solve this issue though.
@MarcSkovMadsen The link is dead.
The guide has been released and can be found at https://panel.holoviz.org/how_to/logging/index.html.