Skip to main content

wants

Function wants 

Source
pub fn wants(level: Level) -> bool
Expand description

Whether the host would print a message at this level.

Cheap on purpose: the macros call it before formatting, so a silent host costs one atomic load. With no host the answer is “yes”, because that is a plugin’s own test run.