Re: [POLL] NDC over MDC

2002-08-30 Thread Bill Sorensen
Hostname is logged within the NDC, in the "do stuff" section. This servlet doesn't permit one user to be logged in twice simultaneously. I'm not disputing the value of MDC; I'm only saying that it's overkill for some applications. At 8/30/2002, you wrote: > > NDC.push(currentUser.getCompanyId

Re: [POLL] NDC over MDC

2002-08-30 Thread Eric Jain
> NDC.push(currentUser.getCompanyId()); > // do stuff > NDC.pop(); > NDC.remove(); > > I don't see the benefits of having a key string in the above code. It > would appear to add unnecessary complexity. Not until you need to add one or more other values (e.g. 'hostname')... -- Eric Jain -

Re: [POLL] NDC over MDC

2002-08-30 Thread Bill Sorensen
I prefer NDC. It appears simpler, and I don't understand the benefits of MDC for my applications. Current code for a servlet that logs info by user: NDC.push(currentUser.getCompanyId()); // do stuff NDC.pop(); NDC.remove(); I don't see the benefits of having a key string in the above code. I

RE: [POLL] NDC over MDC

2002-08-30 Thread Wilfred Ho
PROTECTED] Subject: Re: [POLL] NDC over MDC In one application I have a chain of 5 javax.servlet.Filters. I find it handy to pop the name of each one onto the NDC so I know where I am in the stack. I also use them for tracking certain recursive calls or state. Certainly not indispensible, but very

Re: [POLL] NDC over MDC

2002-08-29 Thread Fergus Gallagher
In one application I have a chain of 5 javax.servlet.Filters. I find it handy to pop the name of each one onto the NDC so I know where I am in the stack. I also use them for tracking certain recursive calls or state. Certainly not indispensible, but very handy. But prefer? Probably not - it'

[POLL] NDC over MDC

2002-08-29 Thread Ceki Gülcü
Hi, Is there anyone who prefers to use NDC instead of MDC? If so why? -- Ceki ps: Please reply to log4j-user@ if you choose respond. -- To unsubscribe, e-mail: For additional commands, e-mail: