klyn.logging.LogFields.merge
method
public static merge(
context as Map<String, Object>,
explicitFields as Map<String, Object>
) as LogFields:
Description

Merges two maps, giving explicit fields precedence over context fields.

Parameters
ParameterDescription
contextContext fields.
explicitFieldsFields supplied directly to the logger call.
Returns

Immutable merged snapshot.

Example

fields = LogFields.merge({"id": 1}, {"id": 2})