tracing-assertions
An assertions framework for tracing.
Simpler and faster than the alternatives.
use SubscriberExt;
// Initialize a subscriber with the layer.
let asserter = default;
let registry = default;
let subscriber = registry.with;
let guard = set_default;
let one = asserter.matches;
let two = asserter.matches;
let and = &one & &two;
info!;
one.assert;
info!;
two.assert;
and.assert;
drop; // Drop `subscriber` as the current subscriber.
Similar crates
- test-log: A replacement of the
#[test]
attribute that initializes logging and/or tracing infrastructure before running tests. - tracing_test: Helper functions and macros that allow for easier testing of crates that use
tracing
. - tracing-fluent-assertions: An fluent assertions framework for tracing.