Install
[]
= "0.0.11"
Requires Rust 1.88.0 or newer (edition 2024).
Usage
use Log;
use LogLevel;
use ;
Predicates
| Form | Predicate |
|---|---|
level == LogLevel::INFO |
record at the given level exists |
contains "needle" |
record description contains the substring |
attribute "k" => v |
record's attribute equals the value |
component "name" |
record's component equals the string |
len == n |
exactly n records were captured |
Each is also exposed as a free function (has_level,
description_contains, attribute_eq, has_component) so you can
compose them or use them outside the macro.
License
Dual-licensed under Apache 2.0 or MIT, at your option.