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

#714 in Debugging

Download history 12/week @ 2024-07-19 52/week @ 2024-07-26 18/week @ 2024-08-02 14/week @ 2024-08-09 16/week @ 2024-08-16 22/week @ 2024-08-23 23/week @ 2024-08-30 65/week @ 2024-09-06 13/week @ 2024-09-13 20/week @ 2024-09-20 14/week @ 2024-09-27 8/week @ 2024-10-04 22/week @ 2024-10-11 11/week @ 2024-10-18 6/week @ 2024-10-25 12/week @ 2024-11-01

52 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–7.5MB
~53K SLoC