Expand description
Logging infrastructure for the Joy CLI.
This module provides a structured logging setup using the tracing ecosystem.
It supports multiple verbosity levels, colored output, and environment-based
configuration for debugging.
§Features
- Verbosity control:
--verbosefor debug,--quietfor errors only - Color support: Automatic detection with
--no-coloroverride - Environment filters: Override via
RUST_LOGenvironment variable - Structured logging: Use tracing spans for context
§Example
use fob_cli::logger::init_logger;
use tracing::{info, debug, error};
init_logger(false, false, false);
info!("Starting build");
debug!("Processing module: {}", "index.ts");Functions§
- init_
logger - Initialize the tracing subscriber with the specified options.
- init_
logger_ with_ filter - Initialize logger with custom environment filter.
- should_
use_ colors - Check if colored output should be enabled.