error static method

void error(
  1. String tag,
  2. dynamic error, [
  3. StackTrace? stackTrace
])

Logs an error with optional stack trace

Implementation

static void error(String tag, dynamic error, [StackTrace? stackTrace]) {
  for (var target in _logTargets) {
    target.logError(tag, error, stackTrace);
  }
}