10 May 2012 00:02
Squelching NDC output?
Christopher Nagel <cnagel.com <at> gmail.com>
2012-05-09 22:02:18 GMT
2012-05-09 22:02:18 GMT
Hi,
I have a pattern layout that includes "<%x>" because my app has 20 threaded objects I want to keep track of. Unfortunately, log4cxx prints "<null>" for all the times when there is no NDC.
Is there a pattern specifier that will make it just *be* null instead of printing "null"? If not, could someone direct me to the part of the code I can look for how to implement it?
Thanks,
Chris
RSS Feed