error method
void
error(})
Sends an error
log message.
You can optionally send an errorMessage
, errorKind
, and an errorStackTrace
that will be connected to this log message.
You can provide additional attributes for this log message using the
attributes
parameter. Values passed into attributes
must be supported by
StandardMessageCodec.
Implementation
void error(
String message, {
String? errorMessage,
String? errorKind,
StackTrace? errorStackTrace,
Map<String, Object?> attributes = const {},
}) {
_internalLog(LogLevel.error, message, errorMessage, errorKind,
errorStackTrace, attributes);
}