The resulting value can be passed to zlogMessage function or to any logger method to add
details to logged message.
When processed outside the log-z in the output or default logging stage, the details object is expanded as is,
unless the details map is empty. Additionally, if the details value is the last one of the log line, an error
detail is extracted from the details map, and logged as the last element of the final log line.
Either log message details to add, or a function constructing ones. The function will be called to
expand the log message details. It may return null/undefined to expand to nothing.
Creates a loggable value treated as additional message details.
The resulting value can be passed to zlogMessage function or to any logger method to add details to logged message.
When processed outside the
log-z
in the output or default logging stage, the details object is expanded as is, unless the details map is empty. Additionally, if the details value is the last one of the log line, anerror
detail is extracted from the details map, and logged as the last element of the final log line.