isDebug property
bool
get
isDebug
True when a Logger.debug(...) call would actually emit output.
Hot interpreter paths use this to skip building interpolated debug strings (and any work done solely to produce them) when debug logging is off — the eager interpolation otherwise dominates call-heavy execution.
Implementation
static bool get isDebug => _shouldLog(D4LogLevel.debug);