Thanks, but I don't think that will do it for me... I'm using a JMS appender to send LoggingEvents from a servlet to a message driven bean. The bean will log the event to a database. Of course, I want to log the servlet's MDC (contained in the Logging Event), not the bean's. MDC.getContext only gets me the bean's Hashtable.

Ceki G�lc� wrote:


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]





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



Reply via email to