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

#702 in Debugging

Download history 14/week @ 2024-03-11 22/week @ 2024-03-18 26/week @ 2024-03-25 44/week @ 2024-04-01 15/week @ 2024-04-08 13/week @ 2024-04-15 21/week @ 2024-04-22 15/week @ 2024-04-29 16/week @ 2024-05-06 19/week @ 2024-05-13 9/week @ 2024-05-20 14/week @ 2024-05-27 16/week @ 2024-06-03 17/week @ 2024-06-10 15/week @ 2024-06-17 27/week @ 2024-06-24

75 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

~0.9–8MB
~56K SLoC