Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

log4j : NDC

 
Ranch Hand
Posts: 44
  • 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 ]
 
Marshal
Posts: 25682
69
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: 44
  • 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
 
    Bookmark Topic Watch Topic
  • New Topic