Just a thought...

If multiple JVM's wrote to the same log file would that be thread safe?  How
would you lock a class cross JVM? I suppose you could chmod it.. but then I
think you would still have a problem with log times not being in order...

What I see is more like a log file buffer that would be written to by your
applications, and then a second process that periodically reads these
buffers(files) and creates 1 log from them that is ordered properly.

-Ben Stocum


"Hansen, Richard" wrote:

> Have you tried this? If it doesn't work I suppsoe you could either write to
> a database or maybe a socket appender?
>
> Rick Hansen
>
> > -----Original Message-----
> > From: David Thielen [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, June 26, 2001 9:29 AM
> > To: LOG4J Users Mailing List
> > Subject: RE: Multiple JVMs writing to one log file
> >
> >
> > Asking again - has anyone run into this? This is potentially a killer
> > problem for us (and anyone who writes J2EE apps).
> >
> > thanks - dave
> >
> >
> > -----Original Message-----
> > From: David Thielen [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, June 25, 2001 2:36 PM
> > To: Log4j-User
> > Subject: Multiple JVMs writing to one log file
> >
> >
> > Hi;
> >
> > In the J2EE environment, we can end up with our code running
> > in multiple
> > JVMs on one server.
> >
> > Is there a way to have all the JVMs write to the same log file?
> >
> > thanks - dave
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
begin:vcard 
n:Stocum;Ben
tel;home:442-1316
tel;work:383-3510
x-mozilla-html:FALSE
url:http://www.paychex.com
org:Paychex, Inc;Enterprise Development
adr:;;911 Panorama Trail S.;Rochester;NY;14625-2396;
version:2.1
email;internet:[EMAIL PROTECTED]
title:Developer Lv 1
fn:Ben Stocum
end:vcard

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

Reply via email to