tardis.io.logger.logger_widget module

class tardis.io.logger.logger_widget.PanelWidgetLogHandler(log_columns, colors, display_widget=True, display_handles=None, batch_size=10)[source]

Bases: Handler

Log handler for logging to scroll columns.

Parameters:
log_columnsdict

Dictionary of scroll columns for each log level.

colorsdict

Dictionary mapping log levels to display colors.

display_widgetbool, optional

Whether to display logs in the widget. Defaults to True.

display_handlesdict, optional

Dictionary of display handles for each column (jupyter environment).

Initializes the instance - basically setting the formatter to None and the filter list to empty.

close()[source]

Close the log handler.

emit(record)[source]

Process and emit a log record.

Parameters:
recordlogging.LogRecord

The log record to process and display.

tardis.io.logger.logger_widget.create_logger_columns(start_height=10, max_height=300)[source]

Create a single logger scroll column with dynamic height.

Returns:
dict

Dictionary containing a single log column for all logs.