Registry / observability / tracing-log

tracing-log

JSON →
library0.2.0rscratesunverified

Provides compatibility between tracing and the log crate, allowing log records to be captured by tracing subscribers.

# Cargo.toml [dependencies] tracing-log = "0.2.0"
INSTALL
IMPORT
SIG · TRACING-LOG
T
tracing-log
observabilityrustv0.2.0
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.

LogTracer
use tracing_log::LogTracer;

Initializes a LogTracer to forward log records to tracing.

use tracing_log::LogTracer; fn main() { LogTracer::init().unwrap(); log::info!("This log is captured by tracing"); }
Debug
Known issues
gotchaMust be initialized before any log macros are used.
fix
Call LogTracer::init() early in main.
affects: >=0.2.0
Upgrade
Version history
0.2.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
50 hits · last 30 days
node
44
Amazon
1
OpenAI (training)
1
Resources
tracing-log — cargo add tracing-log · libregistry