Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

log4j : NDC

 
Mehul Mistry
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I working with one of the application developed in java and using log4j for logging. It has also been configured for chainsaw tool of Apache. When examining logs for through chainsaw, I noticed that there is a column called as NDC (nested diagnostic contexts). This is printing some text while at some events (Which I am not able to figure out, what kind of event). Also I noticed that when some text is printed in NDC the category for log is "Transactions".
I want to know under what condition this log will be printed and how and from where log4j picks up the string for NDC and prints it on the logs.

Can someone please help put some light on this.

Regards,
Mehul
[ August 08, 2008: Message edited by: Mehul Mistry ]
 
Paul Clapham
Sheriff
Posts: 21107
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's right there in the log4j manual. Scan for "NDC".
 
Mehul Mistry
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I never used NDC before so was not aware of it.In my initial investigations I could not reach there.Anyway, saw the manual, and traced the location where some text is pushed in NDC. Thank you.

Thanks,
Mehul
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic