write abstract method

void write(
  1. LogLevel level,
  2. String? correlationId,
  3. Exception? error,
  4. String message,
)

Writes a log message to the logger destination.

  • level a log level.
  • 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.

Implementation

void write(
    LogLevel level, String? correlationId, Exception? error, String message);