typub-log 0.1.0

Logging foundation for typub based on tracing
Documentation

Logging foundation for typub based on tracing.

This crate provides:

  • Re-exported tracing macros (debug!, info!, warn!, error!)
  • A custom CliLayer for CLI-formatted output with icons and colors
  • The ProgressReporter trait for decoupling progress reporting from UI

Per [[ADR-0004]], this crate is Layer 0 (no internal typub dependencies).

Usage

use typub_log::{debug, info, warn, error};

// Structured logging with tracing
info!(file = %path.display(), "Processing file");
debug!(count = 42, "Items processed");
warn!(platform = "ghost", "Rate limit approaching");
error!(error = %e, "Upload failed");

Initialization

Call init() at CLI startup to install the CLI subscriber:

typub_log::init(verbose);