6 releases

new 0.1.2 Feb 19, 2021
0.1.1 Oct 29, 2019
0.1.0 Sep 3, 2019
0.0.1-alpha.2 Sep 3, 2019
0.0.0 Jun 27, 2019

#9 in #tracing

Download history 50490/week @ 2020-11-04 57950/week @ 2020-11-11 61039/week @ 2020-11-18 51752/week @ 2020-11-25 60562/week @ 2020-12-02 57582/week @ 2020-12-09 57077/week @ 2020-12-16 39190/week @ 2020-12-23 47147/week @ 2020-12-30 66857/week @ 2021-01-06 68290/week @ 2021-01-13 74562/week @ 2021-01-20 76089/week @ 2021-01-27 77414/week @ 2021-02-03 73132/week @ 2021-02-10 82377/week @ 2021-02-17

273,414 downloads per month
Used in 457 crates (23 directly)

MIT license

210KB
3K SLoC

Tracing — Structured, application-level diagnostics

tracing-log

log compatibility for tracing.

Crates.io Documentation Documentation (master) MIT licensed Build Status Discord chat maintenance status

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 and AsLog traits for converting between tracing and log types.
  • LogTracer, a log::Log implementation that consumes log::Records and outputs them as tracing::Events.
  • An [env_logger] module, with helpers for using the [env_logger crate] with tracing (optional, enabled by the env_logger feature).

Compiler support: requires rustc 1.42+

Supported Rust Versions

Tracing is built against the latest stable release. The minimum supported version is 1.42. The current Tracing version is not guaranteed to build on Rust versions earlier than the minimum supported version.

Tracing follows the same compiler support policies as the rest of the Tokio project. The current stable Rust compiler and the three most recent minor versions before it will always be supported. For example, if the current stable compiler version is 1.45, the minimum supported version will not be increased past 1.42, three minor versions prior. Increasing the minimum supported compiler version is not considered a semver breaking change as long as doing so complies with this policy.

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.

Dependencies

~59–385KB