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
41
42
//! # tiny-tracing
//!
//! A lightweight, builder-style logger for Rust projects that wraps
//! [`tracing`] and [`tracing-subscriber`].
//!
//! Ideal for small to medium applications that want structured or
//! text output with minimal ceremony.
//!
//! # Quick start
//!
//! ```rust
//! use tiny_tracing::Logger;
//!
//! fn main() -> Result<(), Box<dyn std::error::Error>> {
//! Logger::new().init()?;
//!
//! tiny_tracing::info!("Application started");
//! Ok(())
//! }
//! ```
//!
//! # Features
//!
//! - Text and JSON output formats
//! - Output to stdout, a file, or both
//! - Environment-filter support via [`EnvFilter`](tracing_subscriber::EnvFilter)
//! (`"info,my_crate=debug"`, `RUST_LOG`, etc.)
//! - Fluent builder API with sensible defaults
//! - Safe initialisation — never panics on double-init
/// Logger builder and initialisation logic.
/// Error types returned by the library.
/// Custom timestamp formatter for log lines.
pub use ;
pub use ;