Hello,

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.

Thanks.

 


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

Reply via email to