13 releases

0.6.0-rc Nov 30, 2023
0.5.1 Aug 1, 2023
0.5.0 Dec 21, 2022
0.4.6 Dec 16, 2022
0.1.0 Sep 14, 2022

#283 in Configuration

Download history 631/week @ 2023-12-06 325/week @ 2023-12-13 518/week @ 2023-12-20 71/week @ 2023-12-27 218/week @ 2024-01-03 566/week @ 2024-01-10 1172/week @ 2024-01-17 1118/week @ 2024-01-24 2598/week @ 2024-01-31 2427/week @ 2024-02-07 1163/week @ 2024-02-14 734/week @ 2024-02-21 139/week @ 2024-02-28 178/week @ 2024-03-06 331/week @ 2024-03-13 68/week @ 2024-03-20

920 downloads per month
Used in trace4rs

MIT license

20KB
418 lines

trace4rs

This crate allows users to configure output from tracing in the same way as you would configure the output of log4rs.

Overview

For a usage example see the examples folder or src/test.rs.

Benchmarks & Results

The takeaway is that the actual appenders are roughly equivalent in performance. However, when using the tracing macros vs the log macros the appender performance is roughly 2 orders of magnitude larger. See for yourself with cargo bench --features tracing-macros

Dev suggestions

  • cargo install cargo-binstall
  • cargo install cargo-update
  • cargo install cargo-nextest

Dependencies

~0.6–1.4MB
~28K SLoC