Don,


You can use MDC.getContext which returns the Hashtable where the data is stored. You can get the keys from there.

I also added MDC.getKeys to the most recent code in our CVS repository.

HTH,

At 12:47 PM 8/22/2003 -0400, Don Isenor wrote:
I need to extract the MDC key/value pairs from a LoggingEvent. I'd like to iterate through the list of keys, but there seems to be no method for getting such a list. Does anyone know how I might accomplish this? I don't know the key names in advance, so LoggingEvent.getMDC() is of no use to me.

Thanks,
Don Isenor
ePocket Inc.
[EMAIL PROTECTED]

-- Ceki For log4j documentation consider "The complete log4j manual" ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to