scipp.logging#

Utilities for managing Scipp’s logger and log widget.

See the https://scipp.github.io/reference/logging.html for an overview.

Functions

clear_log_widget()

Remove the current output of the log widget of the Scipp logger if there is one.

display_logs()

Display the log widget associated with the Scipp logger.

get_log_widget()

Return the log widget used by the Scipp logger.

get_logger()

Return the global logger used by Scipp.

get_widget_handler()

Return the widget handler installed in the Scipp logger.

make_log_widget(**widget_kwargs)

make_widget_handler()

Create a new widget log handler.

Classes

WidgetHandler(level, widget)

Logging handler that sends messages to a LogWidget for display in Jupyter notebooks.

WidgetLogRecord(name, levelname, time_stamp, ...)

Preprocessed data for display in LogWidget.