Package mondrian.util

Class MDCUtil


  • public class MDCUtil
    extends Object
    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 Detail

      • MDCUtil

        public MDCUtil()
        Constructor is called on parent thread so a snapshot of the MDC context is saved here.
    • Method Detail

      • setContextMap

        public void setContextMap()
        This is called on the child thread so the saved MDC context is copied into the child thread.