isLoggable
Determines whether a log message with the given priority should be logged.
If this returns false
, the message-producing lambda in log will not be evaluated, avoiding unnecessary computation.
Return
true
if the message should be logged, false
otherwise.
Parameters
priority
The priority level of the log message.