write method Null safety
Writes a log message to the logger destination.
correlationId
(optional) transaction id to trace execution through call chain.component
a name of called componentoperation
a name of the executed operation.error
an error object associated with this trace.duration
execution duration in milliseconds.