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

#683 in Debugging

Download history 2/week @ 2023-12-20 2/week @ 2024-01-03 7/week @ 2024-01-10 4/week @ 2024-02-07 21/week @ 2024-02-14 27/week @ 2024-02-21 22/week @ 2024-02-28 19/week @ 2024-03-06 16/week @ 2024-03-13 26/week @ 2024-03-20 34/week @ 2024-03-27 26/week @ 2024-04-03

105 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–1.2MB
~18K SLoC