Std.Log.keeps
1 declaration
fn
keeps: &Std.Log.Logger -> Std.Log.Level -> BoolThis is a callable function.
What it does
Whether a logger would keep a line at this level.
Worth asking before building a line whose message is expensive to produce:
the check is a comparison, and the message is not built if it is not kept.
Read the signature
- The text after the name is the type checked by Pudu.
- Read arrows from left to right: inputs come first, and the final type is returned.
- & borrows a value for this call instead of moving or copying it.
