See if these articles help:
  1) Section NDC/MDC at : 
http://www.onjava.com/pub/a/onjava/2002/08/07/log4j.html?page=3
   
  2) http://blog.f12.no/wp/2004/12/09/log4j-and-the-mapped-diagnostic-context
   
  3) Code Sample at : http://www.rtner.de/software/MDCUserServletFilter.html
   
  regards,
  -Jaikiran
  

Rakesh Patel <[EMAIL PROTECTED]> wrote:
  Hi,

currently i have been using log4j by declaring a logger per class. This 
has worked well overall when developing and the granularity of debugging 
it offers is useful.

However, I would like to introduce NDC into the mix and am not sure how 
to do this.

Would i have to let go of the 'one logger per class' set up and instead 
have a global logger (which i set the NDC on)?

My app is a standard web app so i was going to use the users IP address 
as the NDC. I would like to trace the path of the thread acroos the 
different layers of my app.

Any advice appreciated.

Cheers

R

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



                                
---------------------------------
 Here's a new way to find what you're looking for - Yahoo! Answers 
Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it 
NOW
  • Using NDC Rakesh Patel
    • Re: Using NDC jaikiran pai

Reply via email to