#logging-tracing #tracing #logging #log4rs

trace4rs-fmtorp

Torpid formatting for trace4rs

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

#958 in Development tools

Download history 266/week @ 2023-12-22 99/week @ 2023-12-29 331/week @ 2024-01-05 840/week @ 2024-01-12 1900/week @ 2024-01-19 2372/week @ 2024-01-26 5026/week @ 2024-02-02 2882/week @ 2024-02-09 1609/week @ 2024-02-16 1086/week @ 2024-02-23 137/week @ 2024-03-01 389/week @ 2024-03-08 81/week @ 2024-03-15 407/week @ 2024-03-22 93/week @ 2024-03-29 260/week @ 2024-04-05

927 downloads per month
Used in trace4rs

MIT license

9KB
109 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

~3MB
~56K SLoC