error method

  1. @override
void error(
  1. String? correlationId,
  2. Exception? error,
  3. String message, [
  4. List? args,
])
override

Logs recoverable application error.

  • correlationId (optional) transaction id to trace execution through call chain.
  • error an error object associated with this message.
  • message a human-readable message to log.
  • args arguments to parameterize the message.

Implementation

@override
void error(String? correlationId, Exception? error, String message,
    [List? args]) {
  _formatAndWrite(LogLevel.Error, correlationId, error, message, args);
}