mirror of
https://github.com/tokio-rs/tracing.git
synced 2025-10-01 15:00:33 +00:00

## Motivation Intra-workspace dependencies can go out of sync if only referencing crates.io, where changing one crate locally and testing the whole library will result in errors stemming from two different versions of the same trait etc. This is hard to keep track of and makes development more difficult than it needs to be. ## Solution Afaik it's common practice to specify both a version and a path as per [the cargo docs][1]. This is what tokio does with its subcrates too. [1]: https://github.com/rust-lang/cargo/blob/master/src/doc/src/reference/specifying-dependencies.md#multiple-locations.
tracing-log
log
compatibility for tracing
.
Documentation | Chat (discord)
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:
AsTrace
andAsLog
traits for converting betweentracing
andlog
types.LogTracer
, alog::Log
implementation that consumeslog::Record
s and outputs them astracing::Event
s.- An [
env_logger
] module, with helpers for using the [env_logger
crate] withtracing
(optional, enabled by theenv_logger
feature).
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.