5 releases

0.2.3 Aug 1, 2022
0.2.2 Jul 31, 2022
0.2.1 Jul 31, 2022
0.2.0 Jul 31, 2022
0.1.0 Jul 30, 2022

#817 in Debugging

Download history 30/week @ 2024-11-13 11/week @ 2024-11-20 23/week @ 2024-11-27 18/week @ 2024-12-04 15/week @ 2024-12-11 8/week @ 2024-12-18 2/week @ 2025-01-01 2/week @ 2025-01-08 16/week @ 2025-01-29 12/week @ 2025-02-05 27/week @ 2025-02-12 5/week @ 2025-02-19 12/week @ 2025-02-26

57 downloads per month
Used in 7 crates

Unlicense

27KB
389 lines

This crate provides a wrapper over log crate that allows you to specify the type of messages and automatically suppress types of messages that are overwhelmingly sent.

Basic usage:

clilog::info!(I01TEST, "test message");

when message tagged I01TEST is sent over 20 times, a tip will be printed and further such messages will be suppressed.

At the end, you can optionally print a statistics of how many messages are suppressed. (TODO: not implemented yet.)

Dependencies

~1–7.5MB
~50K SLoC