You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by Rob Oxspring <ro...@imapmail.org> on 2006/03/10 02:47:08 UTC

Get MDC keys from LoggingEvent

Hi,

Is there a way to retrieve a collection of MDC keys from a LoggingEvent? 
   If not, then could one be added?

We currently log all details except MDC to file for later analysis and 
plan to start using MDC; though this isn't going to be of great use 
unless we can capture all the MDC content into our log.

Restricting ourselves to a known set of keys is fine as a stop gap but 
seems unnecessarily brittle as a long term solution.

Thanks in advance,

Rob

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org