public class ProcessDataLoggingContext extends Object
pushSection(ExecutionEntity)
. The section keeps track of all pushed
properties. Those can easily be cleared by popping the section with
popSection()
afterwards, e.g. after the successful execution.process engine configuration
. The following configuration options are
available:
Constructor and Description |
---|
ProcessDataLoggingContext(ProcessEngineConfigurationImpl configuration) |
Modifier and Type | Method and Description |
---|---|
protected void |
addToCurrentSection(String property) |
protected void |
addToStack(String value,
String property,
boolean addToMdc) |
protected void |
addToStackAndMdc(String value,
String property) |
void |
clearMdc()
Remove all logging context properties from the MDC
|
void |
fetchCurrentContext()
Preserve the current MDC values and store them in the logging context
|
protected Deque<String> |
getDeque(String property) |
protected static boolean |
isNotBlank(String property) |
protected static boolean |
isNull(String value) |
void |
popSection()
Pop the latest section, remove all pushed properties of that section and
update the MDC accordingly
|
boolean |
pushSection(ExecutionEntity execution)
Start a new section that keeps track of the pushed properties and update
the MDC.
|
protected void |
removeFromStackAndUpdateMdc(String property) |
void |
update()
Update the MDC with the current values of this logging context
|
protected void |
updateMdc(String property) |
protected static boolean |
valuesEqual(String val1,
String val2) |
public ProcessDataLoggingContext(ProcessEngineConfigurationImpl configuration)
public boolean pushSection(ExecutionEntity execution)
updateMdc(String)
with the
previous logging context.execution
- the execution to retrieve the logging context data fromtrue
if the section contains any updates for the MDC
and therefore should be popped later by popSection()
public void popSection()
public void clearMdc()
public void update()
public void fetchCurrentContext()
protected void removeFromStackAndUpdateMdc(String property)
protected void addToCurrentSection(String property)
protected void updateMdc(String property)
protected static boolean isNotBlank(String property)
protected static boolean isNull(String value)
Copyright © 2021. All rights reserved.