Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python Bokeh Logger

Tags:

logging

bokeh

How do you access the python Bokeh logger?

I tried using the basicConfig wrapper but it does not seem to work.

from bokeh.util import logconfig
logconfig.basicConfig(level=logging.DEBUG, filename="output.log")

Anyone had luck redirecting the server logs to a file?

I also tried creating another standard logger without using Bokeh (e.g. with logging module), but it does not work either.

Using Bokeh 0.12.6 (latest)

like image 582
Carmellose Avatar asked Mar 28 '26 20:03

Carmellose


1 Answers

This was resolved in 7755 which added a --log-file command line option to bokeh serve. You will need to update to version 0.12.16 or later.

like image 172
bigreddot Avatar answered Apr 02 '26 11:04

bigreddot



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!