On Aug 12, 2009, at 4:16 AM, sukesh jain wrote:


Hi,

But MDC requires that you know the key well in advance to be put in the configuration file which is not possible in my case.

Thanks & Regards,
Sukesh


The ExtendedPatternLayout in the extras companion has a specifier (either just a plain %x or %X) to output all the items in the MDC. Then you'd just need to ensure that the keys are unique by some means to avoid overwriting.

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org

Reply via email to