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

#496 in Configuration

Download history 209/week @ 2024-07-27 46/week @ 2024-08-03 68/week @ 2024-08-10 72/week @ 2024-08-17 80/week @ 2024-08-24 98/week @ 2024-08-31 5/week @ 2024-09-07 7/week @ 2024-09-14 39/week @ 2024-09-21 258/week @ 2024-09-28 43/week @ 2024-10-05 64/week @ 2024-10-12 63/week @ 2024-10-19 82/week @ 2024-10-26 226/week @ 2024-11-02 72/week @ 2024-11-09

445 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
~27K SLoC