-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Log console default to logging all notebook output? #7386
Comments
Notebook output logging made it easier to test the logging console extension. I think it is too much noise for production, though, unless it is behind a option and turned off by default. See jupyterlab#7386
CC @blink1073 - who seemed like he had some thoughts on this. |
I'd love to have a toggle between "All Messages" and "Unhandled Messages" to have the choice. Not sure about the verbiage of "Unhandled" tho. I'll bring it up for discussion today at the meeting. |
From the dev meeting today (with the log levels tweaked to match python, for example): We'll implement log severity levels: critical, error, warning, info, debug. This severity level is stored at the log model level, and determines what messages are accepted into the log (not just the messages displayed). The default log severity is warning (as it is in python, for example). Normal notebook output will be logged to the info level. Unhandled output can be displayed at the warning level (or perhaps the error level if the output is an error message). We only store messages that meet the current log level (as done in python or java, for example). We have a max queue size for messages, and we don't want the log to be overwhelmed with messages that are uninteresting and push out messages that are interesting. The mental model here is that a user is controlling the actual logging mechanism, not just the view of the log. Other alternatives we discussed to having one queue and only storing messages that meet the current log level include:
|
I've started implementing this in #7406. |
Below is a simple plugin that will log all notebook output to a log console. I think it's too noisy to turn on by default, and the log console should default to just displaying explicit messages that you won't see in a notebook (like the ipywidgets unhandled messages). However, @blink1073 thinks that the log console appears to be broken without something like this.
So should we (a) turn something like this on by default, or (b) provide it as an option, but not turned on by default?
The text was updated successfully, but these errors were encountered: