run<T> method
Executes f, logging its label (and optionally timing it) when debug is enabled
and the label passes all filters.
Implementation
T run<T>(String Function() name, T Function() f) {
if (_debugEnabled) {
final label = '[$runtimeType] ${name()}';
if (_matchesFilters(label)) {
if (_debugTime) return rl.timeIt(label, f);
logInfo(label);
}
}
return f();
}