isEnabled method

bool isEnabled(
  1. SpringLogLevel level
)

Whether this logger currently emits records of level. Check it before building an expensive message, or pass a closure as the message instead. Always true while a hold is active (except for SpringLogLevel.off).

Implementation

bool isEnabled(SpringLogLevel level) =>
    level != SpringLogLevel.off &&
    (_holds.isNotEmpty || level.index >= levelOf(name).index);