Registry / observability / tracing-appender

tracing-appender

JSON →
library0.2.5rscratesunverified

Provides utilities for file appenders and making non-blocking writers for the tracing ecosystem.

# Cargo.toml [dependencies] tracing-appender = "0.2.5"
INSTALL
IMPORT
SIG · TRACING-APPENDER
T
tracing-appender
observabilityrustv0.2.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

NonBlocking
use tracing_appender::non_blocking::NonBlocking;

Sets up non-blocking file logging with daily rotation.

use tracing_appender::non_blocking::NonBlocking; use tracing_subscriber::fmt::MakeWriter; fn main() { let file_appender = tracing_appender::rolling::daily("/tmp", "app.log"); let (non_blocking, _guard) = NonBlocking::new(file_appender); tracing_subscriber::fmt().with_writer(non_blocking).init(); tracing::info!("Logging to file"); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.5latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
25 hits · last 30 days
node
22
OpenAI (training)
1
Resources
tracing-appender — cargo add tracing-appender · libregistry