• 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • salvin francis
  • Stephan van Hulst
  • Frits Walraven
  • Carey Brown
  • Jj Roberts

Log4j NDC Not working

Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Techies,

I am working on a web application built on fedeated portal architecture of Weblogic. Inorder to capture end to end user journey, I am using NDC (Nested Diagnostic Context) of LOG4J. However, it is not logging any information in the log files.

The code snippet is very simple -


However, it is not logging the information in log files. I am using Apache Log4j for logging the information.

I haven't updated any property in log4j.xml as I can't see any such settings in the docs available on intranet.

Please can someone tell me wham am I missing in here? It is pretty simple one liner code which is not working.

Thanks in advance,
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Saurabh,

What conversion pattern are you using? Your logger will look into the NDC stack when it found %x in the conversion pattern.

I am going down to the lab. Do NOT let anyone in. Not even this tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic