logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Williams" <harlene_qu...@hotmail.com>
Subject Re: Daily Rolling Appender Failing
Date Tue, 13 Jan 2004 06:51:30 GMT
We had this problem on AIX, although we never tracked down the specific
cause the behaviour is identical.  I don't think it is necessarily a Log4J
problem either - more to do with the file system itself.  We ended up
writing a nasty hack version of the rolling file appender.  There was a
discussion about this on the list a couple of months ago - is there a
searchable archive anywhere?

Tim.

----- Original Message ----- 
From: <Ken.Liu@bmwna.com>
To: <log4j-user@logging.apache.org>
Sent: Monday, January 12, 2004 3:13 PM
Subject: RE: Daily Rolling Appender Failing


> I don't think this is a problem with log4j, more of an issue with the way
> Windows handles renaming open files (or perhaps the way Java does it).
>
> I just avoid the problem by not keeping log files open overnight, or just
> copying to another location before opening them.  Kind of like the joke
> where the guy goes to the doctor and says "it hurts when I do this", and
the
> doctor goes, "then don't do that."  :)
>
> Seriously though, if you are in a production environment on Windows, you
can
> find yourself missing some log messages if you run into this so it is
> certainly something to be careful to avoid.
>
> Ken
>
> > -----Original Message-----
> > From: Typrowicz, Jim [mailto:JTyprowicz@DirecTV.com]
> > Sent: Monday, January 12, 2004 4:56 PM
> > To: 'Log4J Users List'
> > Subject: RE: Daily Rolling Appender Failing
> >
> >
> > Ken,
> >
> > Thank you for your reply.  Do you know if the log4j
> > developers are working
> > on a solution?
> >
> > Thank you,
> > Jim
> >
> > -----Original Message-----
> > From: Ken.Liu@bmwna.com [mailto:Ken.Liu@bmwna.com]
> > Sent: Monday, January 12, 2004 2:18 PM
> > To: log4j-user@logging.apache.org
> > Subject: RE: Daily Rolling Appender Failing
> >
> > I have found that files can fail to roll over on Windows if
> > you still have
> > them open (such as with tail or Wordpad) when log4j tries to
> > roll over .
> > This might be your problem.
> >
> > Ken
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message