write abstract method
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);