rust-tracing-log 0.1.2 Provides compatibility between tracing the log crates

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).