Module logger

Module logger 

Source
Expand description

§Bootstrap Logger

Lightweight logging abstraction for the bootstrap phase.

§Design Rationale

The bootstrap logger is a simplified logging interface specifically for bootstrap-phase operations. It provides:

  • Minimal API - Only essential log levels
  • Trait-based - Testable with no-op implementation
  • Integration-ready - Can wrap tracing, env_logger, or custom loggers
  • Bootstrap-specific - Separate from application logging

§Log Levels

  • Error - Fatal errors during bootstrap
  • Warn - Non-fatal issues (missing optional config, etc.)
  • Info - Normal bootstrap messages
  • Debug - Detailed bootstrap information

§Usage

use adaptive_pipeline_bootstrap::logger::{BootstrapLogger, ConsoleLogger};

let logger = ConsoleLogger::new();
logger.info("Starting application bootstrap");
logger.debug("Parsing command line arguments");

Structs§

ConsoleLogger
Console logger implementation using tracing
NoOpLogger
No-op logger for testing

Traits§

BootstrapLogger
Bootstrap logging abstraction