[BUG] Logging configuration when running bokeh server
See original GitHub issueIn Bokeh 1.1.0, when a bokeh application is run on a bokeh server, configuration of the root logger inside the user application via logging.basicConfig
or bokeh.utils.logconfig.basicConfig
is ignored. This is because basicConfig
has already been called when the bokeh server is started and has already assigned a handler to the root logger. The logging.basicConfig
function does nothing when a handler is already assigned, which is expected behavior. Documentation on the bokeh server page could help a user to know that to modify the root logger behavior within a program, the root logger handlers must be accessed directly.
Issue Analytics
- State:
- Created 4 years ago
- Comments:13 (10 by maintainers)
Top Results From Across the Web
Creating issues — Bokeh 3.0.2 Documentation
Creating issues#. Bug reports and feature requests in Bokeh's issue tracker are the foundation of almost all improvements implemented in Bokeh.
Read more >Panel serve only allows error-level logging? - HoloViz Discourse
Hi,. I just noticed that no logs are captured by panel unless they are emitted on the 'error' level. Panel serve command:
Read more >Hints for debugging bokeh - Stack Overflow
Running Bokeh server with this code allows you to set a breakpoint to inspect your variables and go step by step into Bokeh...
Read more >Reading bug reports | Android Open Source Project
Android bug reports contain dumpsys , dumpstate , and logcat data in text ... and grep commands for finding logs associated with those...
Read more >bokeh Changelog - pyup.io
9744 [component: bokehjs] [BUG] bokeh server layout overlap on toggle visibility ... 11821 Update branches in CI workflow configurations
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ll take a swing at it after the weekend. I agree, python logging is deeply confusing!
@lunarspectrum The bug is simpler only on the surface. A proper solution should not require fiddling with already configured handlers.