tiny-tracing 0.4.0

Simple rusty log library (tracing-subscriber wrapper)
Documentation
//! # 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>> {
//!     let _guard = Logger::new().init()?;
//!
//!     tiny_tracing::info!("Application started");
//!     Ok(())
//! }
//! ```
//!
//! # Features
//!
//! - Text and JSON output formats
//! - Output to stdout, stderr, a file, or stdout and a file at once; file writes are
//!   non-blocking (keep the [`LoggerGuard`] returned by `init` alive)
//! - Environment-filter support via [`EnvFilter`](tracing_subscriber::EnvFilter)
//!   (`"info,my_crate=debug"`), optionally read from `RUST_LOG`
//! - Fluent builder API with sensible defaults
//! - UTC RFC 3339 timestamps, which can be turned off
//! - Safe initialisation — never panics on double-init

#![deny(missing_docs)]

/// Logger builder and initialisation logic.
pub mod config;
/// Error types returned by the library.
pub mod errors;

pub use tracing::{Level, debug, error, info, trace, warn};

pub use config::{LogFormat, Logger, LoggerGuard, Output};