logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allistair Crossley" <Allistair.Cross...@QAS.com>
Subject RE: log4j:ERROR Failed to rename
Date Wed, 21 Jul 2004 09:12:17 GMT
I just cannot resolve this error with DailyRollingFileAppender - I've tried reconfiguring the
whole log4j setup but it keeps happening. The JVM or Tomcat has a lock on these files and
prevents Log4J renaming them in a Windows environment _most of the time_ meaning sometimes
they can be renamed - perhaps at low traffic times when logging info is not being pushed.


Just look at this output from this morning in stdout! Can anyone take a look at this problem?

log4j:ERROR Failed to rename [d:/iq/logs/application.log] to 
log4j:ERROR Failed to rename [d:/iq/logs/application.log] to [d:/iq/logs/application.log.2004-07-20-17].
log4j:ERROR Failed to rename [d:/iq/logs/application.log] to [d:/iq/logs/application.log.2004-07-20-18].
log4j:ERROR Failed to rename [d:/iq/logs/authentication.log] to [d:/iq/logs/authentication.log.2004-07-20].
log4j:ERROR Failed to rename [d:/iq/logs/search.log] to [d:/iq/logs/search.log.2004-07-20].
log4j:ERROR Failed to rename [d:/iq/logs/search-access.log] to [d:/iq/logs/search-access.log.2004-07-20].
log4j:ERROR Failed to rename [d:/iq/logs/content-access.log] to [d:/iq/logs/content-access.log.2004-07-20].
log4j:ERROR Failed to rename [d:/iq/logs/holidayform.log] to [d:/iq/logs/holidayform.log.2004-07-20].
log4j:ERROR Failed to rename [d:/iq/logs/publishing.log] to [d:/iq/logs/publishing.log.2004-07-20].
log4j:ERROR Failed to rename [d:/iq/logs/application.log] to [d:/iq/logs/application.log.2004-07-20-21].
log4j:ERROR Failed to rename [d:/iq/logs/application.log] to [d:/iq/logs/application.log.2004-07-21-02].
log4j:ERROR Failed to rename [d:/iq/logs/application.log] to [d:/iq/logs/application.log.2004-07-21-06].
log4j:ERROR Failed to rename [d:/iq/logs/application.log] to [d:/iq/logs/application.log.2004-07-21-07].

ADC


> -----Original Message-----
> From: Ceki Gülcü [mailto:ceki@qos.ch]
> Sent: 28 May 2004 18:27
> To: Log4J Users List
> Subject: RE: log4j:ERROR Failed to rename : more info
> 
> 
> Allistair,
> 
> I would very much appreciate if you could try the simple 
> solution proposed 
> in bug 900.
> 
>    http://nagoya.apache.org/bugzilla/show_bug.cgi?id=900
> 
> Does it solve the problem you are encountering?
> 
> At 10:26 PM 5/26/2004, you wrote:
> >Hey,
> >
> >OK, sorry I misunderstood. Look forward to hearing if you 
> find anything or 
> >can improve the DRFA. I'll use the modified version for now,
> >
> >Cheers! And log4j is fantastic btw.
> >
> >ADC
> >
> >         -----Original Message-----
> >         From: Ceki Gülcü [mailto:ceki@qos.ch]
> >         Sent: Wed 26/05/2004 19:24
> >         To: Log4J Users List
> >         Cc:
> >         Subject: RE: log4j:ERROR Failed to rename : more info
> >
> >
> >
> >
> >         I did not say there was no problem. All I am saying 
> is that it's very
> >         unlikely that it is a threading/concurrent access 
> problem. I'll 
> > look into
> >         this tomorrow. Gotta run now.
> 
> -- 
> Ceki Gülcü
> 
>       For log4j documentation consider "The complete log4j manual"
>       ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp  
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
> 
> 


<FONT SIZE=1 FACE="VERDANA,ARIAL" COLOR=BLUE> 
-------------------------------------------------------
QAS Ltd.
Developers of QuickAddress Software
<a href="http://www.qas.com">www.qas.com</a>
Registered in England: No 2582055
Registered in Australia: No 082 851 474
-------------------------------------------------------
</FONT>


---------------------------------------------------------------------
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