tardis.io.logger.logger module

class tardis.io.logger.logger.AsyncEmitLogHandler(log_outputs, colors, display_widget=True, display_handle=None, logger_widget=None)[source]

Bases: Handler

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

emit(record)[source]

Do whatever it takes to actually log the specified logging record.

This version is intended to be implemented by subclasses and so raises a NotImplementedError.

class tardis.io.logger.logger.LogFilter(log_levels)[source]

Bases: object

Filter for controlling which log levels are displayed.

filter(log_record)[source]
class tardis.io.logger.logger.LoggingConfig(LEVELS: dict = <factory>, COLORS: dict = <factory>)[source]

Bases: object

COLORS: dict
DEFAULT_LEVEL = 'INFO'
DEFAULT_SPECIFIC_STATE = False
LEVELS: dict
class tardis.io.logger.logger.TARDISLogger(display_handle=None, logger_widget=None, log_outputs=None)[source]

Bases: object

configure_logging(log_level, tardis_config, specific_log_level=None)[source]
setup_widget_logging(display_widget=True)[source]

Set up widget-based logging interface.

Parameters:
display_widgetbool, optional

Whether to display the widget in GUI environments (default: True)

tardis.io.logger.logger.create_output_widget(height=300)[source]
tardis.io.logger.logger.get_environment()[source]

Determine the execution environment

tardis.io.logger.logger.logging_state(log_level, tardis_config, specific_log_level=None, display_logging_widget=True)[source]