1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//! 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
//!
//! ```rust,ignore
//! 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:
//!
//! ```rust,ignore
//! typub_log::init(verbose);
//! ```
pub use ;
pub use ;
// Re-export tracing macros for convenient use
pub use ;
// Re-export tracing types for advanced use
pub use ;