Skip to content

laboneq.workflow.logbook.logging_store

Logbook that outputs events to a Python logger.

LoggingLogbook(workflow, logger, *, rich=True)

Bases: Logbook

A logbook that logs events to a Python logger.

comment(message, level=logging.INFO)

Called to leave a comment.

log(level, message, *args)

Called to leave a log message.

on_end(workflow_result)

Called when the workflow execution ends.

on_error(workflow_result, error)

Called when the workflow raises an exception.

on_start(workflow_result)

Called when the workflow execution starts.

on_task_end(task)

Called when a task ends execution.

on_task_error(task, error)

Called when a task raises an exception.

on_task_start(task)

Called when a task begins execution.

save(artifact)

Called to save an artifact.

LoggingStore(logger=None, *, rich=True)

Bases: LogbookStore

A logging store that writes logs to a Python logger.

DEFAULT_LOGGER = logging.getLogger('laboneq.applications') class-attribute instance-attribute

create_logbook(workflow, start_time)

Create a new logbook for the given workflow.