Expand description
Logging and progress display utilities.
This module provides structured logging for Ralph’s pipeline:
Loggerstruct 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§
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.