public class ServletLogContext extends Object
| Constructor and Description |
|---|
ServletLogContext() |
| Modifier and Type | Method and Description |
|---|---|
static void |
clear()
Removes our properties from the MDC
|
static String |
getTransactionId() |
static String |
getUser() |
static WebRequestDetail |
getWebRequest() |
static void |
putTransactionId(String transactionId)
Sets the transaction id in the logging context
|
static void |
putUser(String user)
Sets the user in the logging context
|
static void |
putWebRequest(WebRequestDetail webRequest)
Sets the web request in the logging context
|
public static String getTransactionId()
public static void putTransactionId(String transactionId)
transactionId - The transaction idpublic static String getUser()
public static void putUser(String user)
user - The userpublic static WebRequestDetail getWebRequest()
public static void putWebRequest(WebRequestDetail webRequest)
webRequest - The web requestpublic static void clear()
Copyright © 2020 Stackify, LLC. All rights reserved.