macro_rules! event_dyn {
($level:expr, $($args:tt)*) => { ... };
}Expand description
Dispatches a log event at a level determined at runtime.
The first argument is a tracing::Level value resolved at runtime; all remaining arguments
(including an optional !!<error>) are forwarded to the appropriate level macro.
Prefer the level-specific macros (error!, warn!, …) when the level is known at compile
time. Use this macro only when the level is dynamic.
§Examples
let level = Level::WARN;
objectstore_log::event_dyn!(level, "something happened");
objectstore_log::event_dyn!(level, key = "value", "with a field");