mirror of
https://github.com/tokio-rs/tracing.git
synced 2025-09-30 06:20:38 +00:00

This PR prepares the `tracing-log` crate to publish an alpha release to crates.io. I realised this was necessary as I wanted to publish a new alpha of `tracing-fmt`, and that crate now depends on `tracing-log`. I've also done some cleanup & added some documentation. Signed-off-by: Eliza Weisman <eliza@buoyant.io> * log: improve documentation/readme * log: cleanup, fix warnings/edition idioms * log: prepare to release 0.0.1-alpha.1 * fix unclear wording Signed-off-by: Eliza Weisman <eliza@buoyant.io>
tracing-log
Warning: Until tracing-log
has a 0.1.0 release on crates.io, please treat every release as potentially breaking.
log
compatibility for tracing
.
Overview
tracing
is a framework for instrumenting Rust programs with context-aware,
structured, event-based diagnostic information. This crate provides
compatibility layers for using tracing
alongside the logging facade provided
by the log
crate.
This crate provides:
LogTracer
, alog::Log
implementation that consumeslog::Record
s and outputs them astracing::Event
.TraceLogger
, atracing::Subscriber
implementation that consumestracing::Event
s and outputslog::Record
, allowing an existing logger implementation to be used to record trace events.
License
This project is licensed under the MIT license.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Tracing by you, shall be licensed as MIT, without any additional terms or conditions.