Expand description
§testlog
A tiny, focused crate that provides a single macro: test_log!
This macro prints to stderr only when tests are running and only for the crate where it’s used. Perfect for debugging test failures without cluttering production output.
§Usage
use testlog::test_log;
#[test]
fn my_test() {
test_log!("Debug info: {}", some_value);
// Output only appears when running tests
}
Macros§
- test_
log - A macro that prints to stderr only during test execution for the current crate.