• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

Log4j NDC Not working

 
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 -

NDC.push("Saurabh");

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,
Saurabh
 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

Thanks
 
reply
    Bookmark Topic Watch Topic
  • New Topic