Crate loggy [−] [src]
An opinionated library for developing and testing rust applications that use logging.
Macros
note |
Generate either an error or a warning, depending on some configuration parameter. |
test_loggy |
Create a test case using |
todox |
Generate a debug log message. |
Structs
ErrorsScope |
Track the number of errors in the scope of the lifetime of the instance of this class. |
Loggy |
Control the behavior of the |
Functions
assert_log |
Assert that the collected log messages are as expected. |
clear_log |
Clear the log buffer following the comparison. |
errors |
Return the total number of calls to |
had_errors |
Return whether there were any calls to |
init |
Initialize the global logger with |