public final class LogContextHelper extends Object
Modifier and Type | Method and Description |
---|---|
static void |
setLogContextParams(Message message,
String requestId)
Set log context parameters, specifically:
LogContextFilter.CTX_SOURCE_SYSTEM
LogContextFilter.CTX_CORRELATION_ID
LogContextFilter.CTX_PROCESS_ID
LogContextFilter.CTX_REQUEST_ID
It's because child threads don't inherits this information from parent thread automatically. |
public static void setLogContextParams(Message message, @Nullable String requestId)
message
- the messagerequestId
- the request IDCopyright © 2018 Pivotal Software, Inc.. All rights reserved.