log static method
void
log(})
Logs a message
with provided level
and optional tag
, ex
and stacktrace
Implementation
static void log(
String level,
String message, {
String? tag,
dynamic ex,
StackTrace? stacktrace,
Map<String, String?>? attributes,
}) {
if (_muteLevels.contains(level)) {
return; // skip logging if muted.
}
final loggersForTree = _trees[level];
for (final logger in loggersForTree ?? <LogTree>[]) {
logger.log(
level,
message,
tag: tag,
ex: ex,
stacktrace: stacktrace,
attributes: attributes,
);
}
}