Package mondrian.util
Class MDCUtil
java.lang.Object
mondrian.util.MDCUtil
MdcUtil is a small helper class for copying log4j MDC context between threads. The main use case is for maintaining
session, IP and user logging information down to the SQL and MDX level to track sensitive data access.
- Author:
- benny
-
Constructor Summary
ConstructorDescriptionMDCUtil()
Constructor is called on parent thread so a snapshot of the MDC context is saved here. -
Method Summary
Modifier and TypeMethodDescriptionvoid
This is called on the child thread so the saved MDC context is copied into the child thread.
-
Constructor Details
-
MDCUtil
public MDCUtil()Constructor is called on parent thread so a snapshot of the MDC context is saved here.
-
-
Method Details
-
setContextMap
public void setContextMap()This is called on the child thread so the saved MDC context is copied into the child thread.
-