public final class LogUtil extends Object
For internal use only (i.e. org.carewebframework.ui).
Intentionally not using MDC as the map uses InheritableThreadLocal, which causes problems in a web/pool environment. Using Log4j NDC %x and pushing the sessionId.
Please take caution and ensure that add/remove calls are handled atomically| Constructor and Description |
|---|
LogUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addDiagnosticContextToCurrentThread(List<String> values)
Please take caution and ensure that add/remove calls are handled atomically
|
static void |
addStandardDiagnosticContextToCurrentThread()
Please take caution and ensure that add/remove calls are handled atomically
|
static boolean |
isLog4jAware()
Returns whether this runtime is log4jAware.
|
static void |
removeDiagnosticContextFromCurrentThread()
Cleans up logging context, removing thread-specific values.
|
static void |
shutdown()
Used to perform log implementation cleanup/shutdown.
|
public static boolean isLog4jAware()
public static void shutdown()
public static void addStandardDiagnosticContextToCurrentThread()
Please take caution and ensure that add/remove calls are handled atomically
As convenience, attempts to add the following diagnostic context to current thread.
public static void addDiagnosticContextToCurrentThread(List<String> values)
Please take caution and ensure that add/remove calls are handled atomically
Add each String in collection to Diagnostic Context.
values - - ordered list of strings to add as diagnostic contextpublic static void removeDiagnosticContextFromCurrentThread()
Copyright © 2015 Regenstrief Center for Biomedical Informatics. All rights reserved.