Skip to content

ImpressLogger

impress.utils.logger.ImpressLogger

Hand-rolled, optionally colorized console logger used internally by ImpressManager and ImpressBasePipeline.

Provides generic level-based logging methods (debug, info, warning, error, critical) as well as semantic convenience methods for specific pipeline/manager lifecycle events (e.g. pipeline_started, pipeline_failed, adaptive_completed). All levels are written to output_stream (default sys.stdout); messages below min_level are dropped.

Source code in src/impress/utils/logger.py
class ImpressLogger:
    """
    Hand-rolled, optionally colorized console logger used internally by
    `ImpressManager` and `ImpressBasePipeline`.

    Provides generic level-based logging methods (`debug`, `info`,
    `warning`, `error`, `critical`) as well as semantic convenience methods
    for specific pipeline/manager lifecycle events (e.g.
    `pipeline_started`, `pipeline_failed`, `adaptive_completed`). All
    levels are written to `output_stream` (default `sys.stdout`); messages
    below `min_level` are dropped.
    """

    _LEVEL_ORDER = [
        LogLevel.DEBUG,
        LogLevel.INFO,
        LogLevel.WARNING,
        LogLevel.ERROR,
        LogLevel.CRITICAL,
    ]

    def __init__(
        self,
        name="ImpressManager",
        use_colors=True,
        output_stream=None,
        min_level: LogLevel = LogLevel.DEBUG,
    ):
        """
        Initialize the logger.

        Args:
            name: Logical name attached to `pipeline_log()` messages
                (typically the owning pipeline or manager name).
            use_colors: Whether to wrap output in ANSI color codes.
            output_stream: Stream to write all log messages to. Defaults
                to `sys.stdout`.
            min_level: Minimum severity to emit; messages below this
                level are silently dropped. Defaults to `LogLevel.DEBUG`
                (emit everything).
        """
        self.name = name
        self.use_colors = use_colors
        self.output_stream = output_stream or sys.stdout
        self.min_level = min_level

        self.level_colors = {
            LogLevel.DEBUG: Colors.BRIGHT_BLACK,
            LogLevel.INFO: Colors.BRIGHT_CYAN,
            LogLevel.WARNING: Colors.BRIGHT_YELLOW,
            LogLevel.ERROR: Colors.BRIGHT_RED,
            LogLevel.CRITICAL: Colors.RED + Colors.BOLD,
        }

        self.component_colors = {
            "pipeline": Colors.BRIGHT_GREEN,
            "adaptive": Colors.BRIGHT_MAGENTA,
            "manager": Colors.BRIGHT_BLUE,
            "workflow": Colors.CYAN,
            "task": Colors.YELLOW,
            "error": Colors.RED,
            "success": Colors.GREEN,
            "stage": Colors.BRIGHT_CYAN,
            "step": Colors.CYAN,
            "resource": Colors.MAGENTA,
            "data": Colors.BRIGHT_YELLOW,
            "validation": Colors.BRIGHT_MAGENTA,
            "checkpoint": Colors.BRIGHT_GREEN,
            "metric": Colors.BRIGHT_WHITE,
        }

    def _colorize(self, text, color):
        return f"{color}{text}{Colors.RESET}" if self.use_colors else text

    def _format_message(self, level, component, message, pipeline_name=None):
        timestamp = self._colorize(
            datetime.now().strftime("%H:%M:%S.%f")[:-3], Colors.DIM
        )
        level_color = self.level_colors.get(level, Colors.WHITE)
        colored_level = self._colorize(f"[{level.value}]", level_color)

        # Handle pipeline-specific components
        if component.lower().startswith("pipeline-"):
            component_color = Colors.BRIGHT_GREEN
        else:
            component_color = self.component_colors.get(component.lower(), Colors.WHITE)

        colored_component = self._colorize(f"[{component.upper()}]", component_color)

        pipeline_part = ""
        if pipeline_name:
            pipeline_colored = self._colorize(f"[{pipeline_name}]", Colors.BRIGHT_WHITE)
            pipeline_part = f" {pipeline_colored}"

        return (
            f"{timestamp} {colored_level} {colored_component}{pipeline_part} {message}"
        )

    def _is_enabled(self, level: LogLevel) -> bool:
        return self._LEVEL_ORDER.index(level) >= self._LEVEL_ORDER.index(self.min_level)

    def _write_log(self, message):
        self.output_stream.write(message + "\n")
        self.output_stream.flush()

    def debug(self, message, component="manager", pipeline_name=None):
        """Log a DEBUG-level message.

        Args:
            message: Message text to log.
            component: Named component tag used for color-coding (e.g.
                "manager", "pipeline", "adaptive").
            pipeline_name: Optional pipeline name to include in the log line.
        """
        if not self._is_enabled(LogLevel.DEBUG):
            return
        formatted = self._format_message(
            LogLevel.DEBUG, component, message, pipeline_name
        )
        self._write_log(formatted)

    def info(self, message, component="manager", pipeline_name=None):
        """Log an INFO-level message.

        Args:
            message: Message text to log.
            component: Named component tag used for color-coding.
            pipeline_name: Optional pipeline name to include in the log line.
        """
        if not self._is_enabled(LogLevel.INFO):
            return
        formatted = self._format_message(
            LogLevel.INFO, component, message, pipeline_name
        )
        self._write_log(formatted)

    def warning(self, message, component="manager", pipeline_name=None):
        """Log a WARNING-level message.

        Args:
            message: Message text to log.
            component: Named component tag used for color-coding.
            pipeline_name: Optional pipeline name to include in the log line.
        """
        if not self._is_enabled(LogLevel.WARNING):
            return
        formatted = self._format_message(
            LogLevel.WARNING, component, message, pipeline_name
        )
        self._write_log(formatted)

    def error(self, message, component="manager", pipeline_name=None):
        """Log an ERROR-level message.

        Args:
            message: Message text to log.
            component: Named component tag used for color-coding.
            pipeline_name: Optional pipeline name to include in the log line.
        """
        if not self._is_enabled(LogLevel.ERROR):
            return
        formatted = self._format_message(
            LogLevel.ERROR, component, message, pipeline_name
        )
        self._write_log(formatted)

    def critical(self, message, component="manager", pipeline_name=None):
        """Log a CRITICAL-level message.

        Args:
            message: Message text to log.
            component: Named component tag used for color-coding.
            pipeline_name: Optional pipeline name to include in the log line.
        """
        if not self._is_enabled(LogLevel.CRITICAL):
            return
        formatted = self._format_message(
            LogLevel.CRITICAL, component, message, pipeline_name
        )
        self._write_log(formatted)

    def pipeline_started(self, pipeline_name):
        """Log that a pipeline has started.

        Args:
            pipeline_name: Name of the pipeline that started.
        """
        colored_name = self._colorize(pipeline_name, Colors.BRIGHT_WHITE)
        message = f"Pipeline started: {colored_name}"
        self.info(message, "manager")

    def pipeline_completed(self, pipeline_name):
        """Log that a pipeline has completed.

        Args:
            pipeline_name: Name of the pipeline that completed.
        """
        colored_name = self._colorize(pipeline_name, Colors.BRIGHT_WHITE)
        message = f"Pipeline completed: {colored_name}"
        self.info(message, "manager")

    def pipeline_failed(self, pipeline_name, exc):
        """Log that a pipeline's task finished by raising an exception.

        Args:
            pipeline_name: Name of the pipeline that failed.
            exc: The exception raised by the pipeline's `run()` task.
        """
        colored_name = self._colorize(pipeline_name, Colors.BRIGHT_WHITE)
        message = f"Pipeline FAILED: {colored_name} — {exc}"
        self.error(message, "manager")

    def pipeline_killed(self, pipeline_name):
        """Log that a pipeline was killed via `kill_parent`.

        Args:
            pipeline_name: Name of the pipeline that was killed.
        """
        colored_name = self._colorize(pipeline_name, Colors.BRIGHT_WHITE)
        message = f"Pipeline killed: {colored_name}"
        self.warning(message, "pipeline")

    def adaptive_started(self, pipeline_name):
        """Log that a pipeline's adaptive function has started.

        Args:
            pipeline_name: Name of the pipeline whose adaptive function
                started.
        """
        colored_name = self._colorize(pipeline_name, Colors.BRIGHT_WHITE)
        message = f"Adaptive function started for: {colored_name}"
        self.info(message, "adaptive")

    def adaptive_completed(self, pipeline_name):
        """Log that a pipeline's adaptive function has completed.

        Args:
            pipeline_name: Name of the pipeline whose adaptive function
                completed.
        """
        colored_name = self._colorize(pipeline_name, Colors.BRIGHT_WHITE)
        message = f"Adaptive function completed for: {colored_name}"
        self.info(message, "adaptive")

    def adaptive_failed(self, pipeline_name, error):
        """Log that a pipeline's adaptive function raised an exception.

        Args:
            pipeline_name: Name of the pipeline whose adaptive function
                failed.
            error: String description of the error.
        """
        colored_name = self._colorize(pipeline_name, Colors.BRIGHT_WHITE)
        message = f"Adaptive function failed for {colored_name}: {error}"
        self.error(message, "adaptive")

    def child_pipeline_submitted(self, child_name, parent_name):
        """Log that a child pipeline has been submitted by its parent.

        Args:
            child_name: Name of the newly submitted child pipeline.
            parent_name: Name of the parent pipeline that submitted it.
        """
        colored_child = self._colorize(child_name, Colors.BRIGHT_WHITE)
        colored_parent = self._colorize(parent_name, Colors.BRIGHT_WHITE)
        message = f"Submitting child pipeline: {colored_child} from {colored_parent}"
        self.info(message, "manager")

    def manager_starting(self, pipeline_count):
        """Log that the manager is starting with an initial pipeline count.

        Args:
            pipeline_count: Number of initial pipelines being submitted.
        """
        colored_count = self._colorize(str(pipeline_count), Colors.BRIGHT_WHITE)
        message = f"Starting with {colored_count} initial pipelines"
        self.info(message, "manager")

    def manager_exiting(self):
        """Log that the manager has finished and is exiting."""
        self.info("All pipelines finished. Exiting.", "manager")

    def activity_summary(self, active_pipelines, active_adaptive, buffered_pipelines):
        """Log a summary of the manager's current activity.

        Args:
            active_pipelines: Number of currently running pipeline tasks.
            active_adaptive: Number of currently running adaptive tasks.
            buffered_pipelines: Number of child pipelines buffered for
                submission.
        """
        colored_pipelines = self._colorize(str(active_pipelines), Colors.BRIGHT_GREEN)
        colored_adaptive = self._colorize(str(active_adaptive), Colors.BRIGHT_MAGENTA)
        colored_buffered = self._colorize(str(buffered_pipelines), Colors.BRIGHT_YELLOW)
        summary = (
            f"Active: {colored_pipelines} pipelines, "
            f"{colored_adaptive} adaptive tasks, "
            f"{colored_buffered} buffered"
        )
        self.debug(summary, "manager")

    def pipeline_log(self, message, level=LogLevel.INFO):
        """Log a message tagged with this logger's pipeline name.

        Used by `ImpressBasePipeline` subclasses to log from within a
        pipeline's own `run()` method, tagging output as
        `PIPELINE-<name>` rather than a manager component.

        Args:
            message: Message text to log.
            level: Severity level (default `LogLevel.INFO`).
        """
        if not self._is_enabled(level):
            return
        pipeline_component = f"PIPELINE-{self.name.upper()}"
        formatted = self._format_message(level, pipeline_component, message)
        self._write_log(formatted)

    def separator(self, title=None):
        """Write a horizontal separator line, optionally with a title.

        Args:
            title: Optional text to center within the separator.
        """
        if title:
            separator = f"{'=' * 20} {title} {'=' * 20}"
        else:
            separator = "=" * 50
        colored_sep = self._colorize(separator, Colors.BRIGHT_BLUE)
        self._write_log(colored_sep)

__init__(name='ImpressManager', use_colors=True, output_stream=None, min_level=LogLevel.DEBUG)

Initialize the logger.

Parameters:

Name Type Description Default
name

Logical name attached to pipeline_log() messages (typically the owning pipeline or manager name).

'ImpressManager'
use_colors

Whether to wrap output in ANSI color codes.

True
output_stream

Stream to write all log messages to. Defaults to sys.stdout.

None
min_level LogLevel

Minimum severity to emit; messages below this level are silently dropped. Defaults to LogLevel.DEBUG (emit everything).

DEBUG
Source code in src/impress/utils/logger.py
def __init__(
    self,
    name="ImpressManager",
    use_colors=True,
    output_stream=None,
    min_level: LogLevel = LogLevel.DEBUG,
):
    """
    Initialize the logger.

    Args:
        name: Logical name attached to `pipeline_log()` messages
            (typically the owning pipeline or manager name).
        use_colors: Whether to wrap output in ANSI color codes.
        output_stream: Stream to write all log messages to. Defaults
            to `sys.stdout`.
        min_level: Minimum severity to emit; messages below this
            level are silently dropped. Defaults to `LogLevel.DEBUG`
            (emit everything).
    """
    self.name = name
    self.use_colors = use_colors
    self.output_stream = output_stream or sys.stdout
    self.min_level = min_level

    self.level_colors = {
        LogLevel.DEBUG: Colors.BRIGHT_BLACK,
        LogLevel.INFO: Colors.BRIGHT_CYAN,
        LogLevel.WARNING: Colors.BRIGHT_YELLOW,
        LogLevel.ERROR: Colors.BRIGHT_RED,
        LogLevel.CRITICAL: Colors.RED + Colors.BOLD,
    }

    self.component_colors = {
        "pipeline": Colors.BRIGHT_GREEN,
        "adaptive": Colors.BRIGHT_MAGENTA,
        "manager": Colors.BRIGHT_BLUE,
        "workflow": Colors.CYAN,
        "task": Colors.YELLOW,
        "error": Colors.RED,
        "success": Colors.GREEN,
        "stage": Colors.BRIGHT_CYAN,
        "step": Colors.CYAN,
        "resource": Colors.MAGENTA,
        "data": Colors.BRIGHT_YELLOW,
        "validation": Colors.BRIGHT_MAGENTA,
        "checkpoint": Colors.BRIGHT_GREEN,
        "metric": Colors.BRIGHT_WHITE,
    }

activity_summary(active_pipelines, active_adaptive, buffered_pipelines)

Log a summary of the manager's current activity.

Parameters:

Name Type Description Default
active_pipelines

Number of currently running pipeline tasks.

required
active_adaptive

Number of currently running adaptive tasks.

required
buffered_pipelines

Number of child pipelines buffered for submission.

required
Source code in src/impress/utils/logger.py
def activity_summary(self, active_pipelines, active_adaptive, buffered_pipelines):
    """Log a summary of the manager's current activity.

    Args:
        active_pipelines: Number of currently running pipeline tasks.
        active_adaptive: Number of currently running adaptive tasks.
        buffered_pipelines: Number of child pipelines buffered for
            submission.
    """
    colored_pipelines = self._colorize(str(active_pipelines), Colors.BRIGHT_GREEN)
    colored_adaptive = self._colorize(str(active_adaptive), Colors.BRIGHT_MAGENTA)
    colored_buffered = self._colorize(str(buffered_pipelines), Colors.BRIGHT_YELLOW)
    summary = (
        f"Active: {colored_pipelines} pipelines, "
        f"{colored_adaptive} adaptive tasks, "
        f"{colored_buffered} buffered"
    )
    self.debug(summary, "manager")

adaptive_completed(pipeline_name)

Log that a pipeline's adaptive function has completed.

Parameters:

Name Type Description Default
pipeline_name

Name of the pipeline whose adaptive function completed.

required
Source code in src/impress/utils/logger.py
def adaptive_completed(self, pipeline_name):
    """Log that a pipeline's adaptive function has completed.

    Args:
        pipeline_name: Name of the pipeline whose adaptive function
            completed.
    """
    colored_name = self._colorize(pipeline_name, Colors.BRIGHT_WHITE)
    message = f"Adaptive function completed for: {colored_name}"
    self.info(message, "adaptive")

adaptive_failed(pipeline_name, error)

Log that a pipeline's adaptive function raised an exception.

Parameters:

Name Type Description Default
pipeline_name

Name of the pipeline whose adaptive function failed.

required
error

String description of the error.

required
Source code in src/impress/utils/logger.py
def adaptive_failed(self, pipeline_name, error):
    """Log that a pipeline's adaptive function raised an exception.

    Args:
        pipeline_name: Name of the pipeline whose adaptive function
            failed.
        error: String description of the error.
    """
    colored_name = self._colorize(pipeline_name, Colors.BRIGHT_WHITE)
    message = f"Adaptive function failed for {colored_name}: {error}"
    self.error(message, "adaptive")

adaptive_started(pipeline_name)

Log that a pipeline's adaptive function has started.

Parameters:

Name Type Description Default
pipeline_name

Name of the pipeline whose adaptive function started.

required
Source code in src/impress/utils/logger.py
def adaptive_started(self, pipeline_name):
    """Log that a pipeline's adaptive function has started.

    Args:
        pipeline_name: Name of the pipeline whose adaptive function
            started.
    """
    colored_name = self._colorize(pipeline_name, Colors.BRIGHT_WHITE)
    message = f"Adaptive function started for: {colored_name}"
    self.info(message, "adaptive")

child_pipeline_submitted(child_name, parent_name)

Log that a child pipeline has been submitted by its parent.

Parameters:

Name Type Description Default
child_name

Name of the newly submitted child pipeline.

required
parent_name

Name of the parent pipeline that submitted it.

required
Source code in src/impress/utils/logger.py
def child_pipeline_submitted(self, child_name, parent_name):
    """Log that a child pipeline has been submitted by its parent.

    Args:
        child_name: Name of the newly submitted child pipeline.
        parent_name: Name of the parent pipeline that submitted it.
    """
    colored_child = self._colorize(child_name, Colors.BRIGHT_WHITE)
    colored_parent = self._colorize(parent_name, Colors.BRIGHT_WHITE)
    message = f"Submitting child pipeline: {colored_child} from {colored_parent}"
    self.info(message, "manager")

critical(message, component='manager', pipeline_name=None)

Log a CRITICAL-level message.

Parameters:

Name Type Description Default
message

Message text to log.

required
component

Named component tag used for color-coding.

'manager'
pipeline_name

Optional pipeline name to include in the log line.

None
Source code in src/impress/utils/logger.py
def critical(self, message, component="manager", pipeline_name=None):
    """Log a CRITICAL-level message.

    Args:
        message: Message text to log.
        component: Named component tag used for color-coding.
        pipeline_name: Optional pipeline name to include in the log line.
    """
    if not self._is_enabled(LogLevel.CRITICAL):
        return
    formatted = self._format_message(
        LogLevel.CRITICAL, component, message, pipeline_name
    )
    self._write_log(formatted)

debug(message, component='manager', pipeline_name=None)

Log a DEBUG-level message.

Parameters:

Name Type Description Default
message

Message text to log.

required
component

Named component tag used for color-coding (e.g. "manager", "pipeline", "adaptive").

'manager'
pipeline_name

Optional pipeline name to include in the log line.

None
Source code in src/impress/utils/logger.py
def debug(self, message, component="manager", pipeline_name=None):
    """Log a DEBUG-level message.

    Args:
        message: Message text to log.
        component: Named component tag used for color-coding (e.g.
            "manager", "pipeline", "adaptive").
        pipeline_name: Optional pipeline name to include in the log line.
    """
    if not self._is_enabled(LogLevel.DEBUG):
        return
    formatted = self._format_message(
        LogLevel.DEBUG, component, message, pipeline_name
    )
    self._write_log(formatted)

error(message, component='manager', pipeline_name=None)

Log an ERROR-level message.

Parameters:

Name Type Description Default
message

Message text to log.

required
component

Named component tag used for color-coding.

'manager'
pipeline_name

Optional pipeline name to include in the log line.

None
Source code in src/impress/utils/logger.py
def error(self, message, component="manager", pipeline_name=None):
    """Log an ERROR-level message.

    Args:
        message: Message text to log.
        component: Named component tag used for color-coding.
        pipeline_name: Optional pipeline name to include in the log line.
    """
    if not self._is_enabled(LogLevel.ERROR):
        return
    formatted = self._format_message(
        LogLevel.ERROR, component, message, pipeline_name
    )
    self._write_log(formatted)

info(message, component='manager', pipeline_name=None)

Log an INFO-level message.

Parameters:

Name Type Description Default
message

Message text to log.

required
component

Named component tag used for color-coding.

'manager'
pipeline_name

Optional pipeline name to include in the log line.

None
Source code in src/impress/utils/logger.py
def info(self, message, component="manager", pipeline_name=None):
    """Log an INFO-level message.

    Args:
        message: Message text to log.
        component: Named component tag used for color-coding.
        pipeline_name: Optional pipeline name to include in the log line.
    """
    if not self._is_enabled(LogLevel.INFO):
        return
    formatted = self._format_message(
        LogLevel.INFO, component, message, pipeline_name
    )
    self._write_log(formatted)

manager_exiting()

Log that the manager has finished and is exiting.

Source code in src/impress/utils/logger.py
def manager_exiting(self):
    """Log that the manager has finished and is exiting."""
    self.info("All pipelines finished. Exiting.", "manager")

manager_starting(pipeline_count)

Log that the manager is starting with an initial pipeline count.

Parameters:

Name Type Description Default
pipeline_count

Number of initial pipelines being submitted.

required
Source code in src/impress/utils/logger.py
def manager_starting(self, pipeline_count):
    """Log that the manager is starting with an initial pipeline count.

    Args:
        pipeline_count: Number of initial pipelines being submitted.
    """
    colored_count = self._colorize(str(pipeline_count), Colors.BRIGHT_WHITE)
    message = f"Starting with {colored_count} initial pipelines"
    self.info(message, "manager")

pipeline_completed(pipeline_name)

Log that a pipeline has completed.

Parameters:

Name Type Description Default
pipeline_name

Name of the pipeline that completed.

required
Source code in src/impress/utils/logger.py
def pipeline_completed(self, pipeline_name):
    """Log that a pipeline has completed.

    Args:
        pipeline_name: Name of the pipeline that completed.
    """
    colored_name = self._colorize(pipeline_name, Colors.BRIGHT_WHITE)
    message = f"Pipeline completed: {colored_name}"
    self.info(message, "manager")

pipeline_failed(pipeline_name, exc)

Log that a pipeline's task finished by raising an exception.

Parameters:

Name Type Description Default
pipeline_name

Name of the pipeline that failed.

required
exc

The exception raised by the pipeline's run() task.

required
Source code in src/impress/utils/logger.py
def pipeline_failed(self, pipeline_name, exc):
    """Log that a pipeline's task finished by raising an exception.

    Args:
        pipeline_name: Name of the pipeline that failed.
        exc: The exception raised by the pipeline's `run()` task.
    """
    colored_name = self._colorize(pipeline_name, Colors.BRIGHT_WHITE)
    message = f"Pipeline FAILED: {colored_name} — {exc}"
    self.error(message, "manager")

pipeline_killed(pipeline_name)

Log that a pipeline was killed via kill_parent.

Parameters:

Name Type Description Default
pipeline_name

Name of the pipeline that was killed.

required
Source code in src/impress/utils/logger.py
def pipeline_killed(self, pipeline_name):
    """Log that a pipeline was killed via `kill_parent`.

    Args:
        pipeline_name: Name of the pipeline that was killed.
    """
    colored_name = self._colorize(pipeline_name, Colors.BRIGHT_WHITE)
    message = f"Pipeline killed: {colored_name}"
    self.warning(message, "pipeline")

pipeline_log(message, level=LogLevel.INFO)

Log a message tagged with this logger's pipeline name.

Used by ImpressBasePipeline subclasses to log from within a pipeline's own run() method, tagging output as PIPELINE-<name> rather than a manager component.

Parameters:

Name Type Description Default
message

Message text to log.

required
level

Severity level (default LogLevel.INFO).

INFO
Source code in src/impress/utils/logger.py
def pipeline_log(self, message, level=LogLevel.INFO):
    """Log a message tagged with this logger's pipeline name.

    Used by `ImpressBasePipeline` subclasses to log from within a
    pipeline's own `run()` method, tagging output as
    `PIPELINE-<name>` rather than a manager component.

    Args:
        message: Message text to log.
        level: Severity level (default `LogLevel.INFO`).
    """
    if not self._is_enabled(level):
        return
    pipeline_component = f"PIPELINE-{self.name.upper()}"
    formatted = self._format_message(level, pipeline_component, message)
    self._write_log(formatted)

pipeline_started(pipeline_name)

Log that a pipeline has started.

Parameters:

Name Type Description Default
pipeline_name

Name of the pipeline that started.

required
Source code in src/impress/utils/logger.py
def pipeline_started(self, pipeline_name):
    """Log that a pipeline has started.

    Args:
        pipeline_name: Name of the pipeline that started.
    """
    colored_name = self._colorize(pipeline_name, Colors.BRIGHT_WHITE)
    message = f"Pipeline started: {colored_name}"
    self.info(message, "manager")

separator(title=None)

Write a horizontal separator line, optionally with a title.

Parameters:

Name Type Description Default
title

Optional text to center within the separator.

None
Source code in src/impress/utils/logger.py
def separator(self, title=None):
    """Write a horizontal separator line, optionally with a title.

    Args:
        title: Optional text to center within the separator.
    """
    if title:
        separator = f"{'=' * 20} {title} {'=' * 20}"
    else:
        separator = "=" * 50
    colored_sep = self._colorize(separator, Colors.BRIGHT_BLUE)
    self._write_log(colored_sep)

warning(message, component='manager', pipeline_name=None)

Log a WARNING-level message.

Parameters:

Name Type Description Default
message

Message text to log.

required
component

Named component tag used for color-coding.

'manager'
pipeline_name

Optional pipeline name to include in the log line.

None
Source code in src/impress/utils/logger.py
def warning(self, message, component="manager", pipeline_name=None):
    """Log a WARNING-level message.

    Args:
        message: Message text to log.
        component: Named component tag used for color-coding.
        pipeline_name: Optional pipeline name to include in the log line.
    """
    if not self._is_enabled(LogLevel.WARNING):
        return
    formatted = self._format_message(
        LogLevel.WARNING, component, message, pipeline_name
    )
    self._write_log(formatted)