Hi Glenn,
I know NCD and MDC but actually for my needs I have to log for thread
and I would like to not change all my server code to have this
functionality. 
My server  has several workers pools and some of them can work in
different jvm. We found is better just open a file and having a tx
processing not messed along the other. Working whith high load, using
"per thread" files we improved our speed. Furthermore, with our app, we
substituted an old C++ server with an homemade logging facility and
maintenance guys wants the same logging concepts :-( Using google I'have
found similar requests many times. Probably it is not so exotic ;-)

Thanks 

--
Davide

> -----Original Message-----
> From: Glenn Strickland [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, July 15, 2004 2:52 PM
> To: 'Log4J Users List'
> Subject: RE: One file for every thread
> 
> I think the suggested way of dealing with a multi-threaded 
> server is not to log each threads output to a separate file, 
> but to tag each log record with an identifier unique to that 
> thread, then log them to the same file. You can do this 
> easily with either NDC (Nested Diagnostic
> Context) or MDC (Mapped Diagnostic Context). 
> 
> Glenn Strickland
> Knowledge Management Objects


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

Reply via email to