Skip to main content

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
  • Test utilities for capturing log output in tests

Structs§

Colors
ANSI color codes
Logger
Logger for Ralph output.
RealColorEnvironment
Real environment implementation for production use.

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

Traits§

ColorEnvironment
Environment abstraction for color detection.
Loggable
Trait for logger output destinations.

Functions§

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