Logs misbehaving

When running the following code the log goes out to Info level instead of error.

import logging
l = logging.getLogger('je')
import panel as pn
pn.extension()

def log(event):
    l.error("Error!")

button = pn.widgets.Button(name='click')
button.on_click(log)

button

image

I now know that this is the default Jupyter behavior.

Yet in IpyWidgets it works as expected.
Why?