public interface DiagnosticContextFacade
mapped diagnostic context. As
additional value you can easily hook in custom extensions without interfering the logger implementation. A use case
may be to provide diagnostic informations also to additional components such as a performance monitoring module.
Therefore setting diagnostic information from devon4j code is always indirected via this interface so the
implementation can be extended or replaced (what is not as easy for static
methods).| Modifier and Type | Method and Description |
|---|---|
String |
getCorrelationId() |
void |
removeCorrelationId()
Removes the
correlation ID from the diagnostic context. |
void |
setCorrelationId(String correlationId)
Sets the
correlation ID for the current processing and thread. |
String getCorrelationId()
correlation ID or null if not
set.void setCorrelationId(String correlationId)
correlation ID for the current processing and thread.correlationId - is the correlation ID as unique identifier for the
current processing task.void removeCorrelationId()
correlation ID from the diagnostic context.Copyright © 2014–2019 devon4j-Team. All rights reserved.