logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Duseja, Sushil" <Sushil.Dus...@fiserv.co.in>
Subject Logging NDC value
Date Wed, 16 Jul 2008 13:29:35 GMT

I used event.getNDC() to log the NDC value (where event is a
org.apache.log4j.spi.LoggingEvent object), but it's fetching - 'null'.
Similarly, I used event.getThrowableStrRep() to log the exception value
but that is again fetching a null.

Can anyone let me know the correct way of doing the same? Moreover,
please let me know - how to log the MDC value?

Note - I did set the parameter - locationInfo in the log4j.xml.



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

View raw message