Module logger

Module logger 

Source
Expand description

Logging and progress display utilities.

This module provides structured logging for Ralph’s pipeline:

  • Logger struct for consistent, colorized output
  • Progress bar display
  • Section headers and formatting
  • Colors & Formatting for terminal output

§Example

use ralph::logger::Logger;
use ralph::logger::Colors;

let colors = Colors::new();
let logger = Logger::new(colors)
    .with_log_file(".agent/logs/pipeline.log");

logger.info("Starting pipeline...");
logger.success("Task completed");
logger.warn("Potential issue detected");
logger.error("Critical failure");

Structs§

Colors
ANSI color codes
Logger
Logger for Ralph output.

Constants§

ARROW
Icons for output
BOX_BL
BOX_BR
BOX_H
BOX_TL
Box-drawing characters for visual structure
BOX_TR
BOX_V
CHECK
CROSS
INFO
WARN

Functions§

argv_requests_json
Detect if command-line arguments request JSON output.
colors_enabled
Check if colors should be enabled
format_generic_json_for_display
Format generic JSON output for display.
print_progress
Print a progress bar with percentage and counts.