On 7/5/07, Mike Wilkinson <[EMAIL PROTECTED]> wrote:
Do all of the threads also write to the same file?
Yes.
Would there be any issue with multiple threads writing to the same file?
No.
On 7/5/07, James Stauffer <[EMAIL PROTECTED]> wrote: > > and if you go the latter route, do you have to synchronize the logger's > > methods - i would think you would have to > > I have used the "all threads share one instance" method without > synchronizing access and it works great. I believe log4j is writen to > to handle all threads sharing one logger instance but I don't know if > anyone has compared the performance. > > On 7/4/07, Mike Wilkinson <[EMAIL PROTECTED]> wrote: > > Hey Jim, > > > > Sorry I am drinkin and researchin so I am a liitle type happy > > > > I sent the same message to Edwin too, > > > > I am mike nice to meet you. > > > > hey i was wondering did you ever figure out which was better for using > > log4j in multi-threaded apps - one instance per thread vs. all threads share > > one instance?? > > > > and if you go the latter route, do you have to synchronize the logger's > > methods - i would think you would have to > > > > any advice you can provide is greatly appreciated. > > > > Cheers, > > > > Mike Wilkinson > > > > > > p.s. fresh, cold wheat beer is very good with just a drop of good orange > > juice in the bottom of the mug - mmm > >
-- James Stauffer http://www.geocities.com/stauffer_james/ Are you good? Take the test at http://www.livingwaters.com/good/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]