SetContext

SetContext#

SetContext

The SetContext operation is used to set the nJAMS log context for the current Mule flow execution. No event is sent.

SetContext is useful if you want to set or overwrite nJAMS context information explicitly.

For example, if you want to overwrite the correlation identifier in order to correlate multiple dependent flow executions by using the same correlation log id, you would use SetContext.

Each nJAMS log operation such as LogInfo, LogSuccess, LogWarn, or LogError can work with the current nJAMS log context as well, but it is not always desired to send a log event when you only want to adjust context information.