error method

void error(
  1. String message, [
  2. Object? error,
  3. StackTrace? stackTrace
])

Logs a message with level LogLevel.error.

Implementation

void error(String message, [Object? error, StackTrace? stackTrace]) {
  _logger.severe(message, error, stackTrace);
}