isDebugEnabled property
bool
get
isDebugEnabled
Whether debug-level messages are currently forwarded to the writer.
Use to gate expensive message construction:
if (log.isDebugEnabled) log.debug(formatBigObject(x));.
Implementation
bool get isDebugEnabled => logLevel.index <= LogLevel.debug.index;