damaris.gui.logging_utils

Unified logging for DAMARIS.

Provides these components:

  • FileTailerHandler: reads new lines from the backend log file and emits them as logging records into the damaris.backend logger.

  • LogDispatcher: a logging.Handler that dispatches records to both a GTK messages_textview (via idle_add) and the console.

  • setup_logging(): convenience function to configure the root logger.

Functions

setup_logging([level, gui_callback, ...])

Configure the DAMARIS logging system.

Classes

FileTailerHandler(filename[, poll_interval, ...])

Reads new lines from a log file and emits them as log records.

LogDispatcher([gui_callback, console])

Dispatches log records to a GTK messages_textview and/or the console.