wei.core.loggers

The logging system that helps track events for the system

Classes

Logger()

The logging system that helps track events for the system

class wei.core.loggers.Logger

The logging system that helps track events for the system

static get_experiment_logger(experiment_id: str) Logger

Finds the existing logger with the given name or creates a new one if it doesn’t exist

Parameters:

experiment_id (str) – The id of the experiment that will refer to this unique logger

Returns:

logger (Logger) – The logging object with the appropriate handlers

static get_logger(log_name: str, log_dir: str | Path, log_level: int = 20) Logger

Finds the existing logger with the given name or creates a new one if it doesn’t exist

Parameters:
  • logger_name (str) – The name that will refer to this unique logger

  • log_dir (Optional[PathLike]) – The path to file that the log will reference

  • level – The output level of the log, INFO, ERROR etc, which describes which what will be logged.

Returns:

logger (Logger) – The logging object with the appropriate handlers

static get_workcell_logger(workcell_id: str) Logger

Finds the existing logger with the given name or creates a new one if it doesn’t exist

Parameters:

workcell_id (str) – The id of the workcell that will refer to this unique logger

Returns:

logger (Logger) – The logging object with the appropriate handlers

static get_workflow_run_logger(wf_run_id: str) Logger

Finds the existing logger with the given name or creates a new one if it doesn’t exist

Parameters:

run_id (str) – The id of the workflow run that will refer to this unique logger

Returns:

logger (Logger) – The logging object with the appropriate handlers