getCallStackSeverity method

Severity getCallStackSeverity(
  1. String tag
)

Implementation

Severity getCallStackSeverity(String tag) {
  var callStackSeverity = Severity.Off;
  for (final logger in loggers) {
    if (tag.startsWith(logger.key) && logger.callStackSeverity.index > callStackSeverity.index) {
      callStackSeverity = logger.callStackSeverity;
    }
  }

  return callStackSeverity;
}