You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Schmied Alexander <Al...@systema.info> on 2002/09/03 09:12:22 UTC

DailyRollingFileAppender does not create backup file

i'm using Log4j with DailyRollingFileAppender and for testing i've
configured the appender to roll every minute. the problem is, that the
debug-output of Log4j logs that the file will be renamed and no error
occured, but there are no backup files in the directory. Here the
debug-output of Log4j:

log4j: c:/log/rel33/Log4j/test.log ->
c:/log/rel33/Log4j/test.log.2002-09-03-08-49
log4j: setFile called: c:/log/rel33/Log4j/test.log, false
log4j: setFile ended

The file test.log exists in the directory and is empty after every minute
but the file test.log.2002-09-03-08-49 is never created. What can be the
problem here?

Thanks, Alex.


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: DailyRollingFileAppender does not create backup file

Posted by Shawn Wilson <sh...@atmreports.com>.
Well, I'm glad to see that someone else is having the same problem I am.
Though I have my DailyRollingFileAppender set to backup once a day and it's
running under Tomcat. Sometimes it'll work for a few days and then just stop
rolling the logs. I can't figure it out. Let me know if you figure out
what's causing the problem.

-shawn

====================================
Shawn Wilson [shawnw@atmreports.com]
Software Developer, ATMReports.com
PH: 877-327-0873, FAX: 406-294-5806
====================================


> -----Original Message-----
> From: Schmied Alexander [mailto:Alexander.Schmied@systema.info]
> Sent: Tuesday, September 03, 2002 1:12 AM
> To: 'log4j-user@jakarta.apache.org'
> Subject: DailyRollingFileAppender does not create backup file
>
>
> i'm using Log4j with DailyRollingFileAppender and for testing i've
> configured the appender to roll every minute. the problem is, that the
> debug-output of Log4j logs that the file will be renamed and no error
> occured, but there are no backup files in the directory. Here the
> debug-output of Log4j:
>
> log4j: c:/log/rel33/Log4j/test.log ->
> c:/log/rel33/Log4j/test.log.2002-09-03-08-49
> log4j: setFile called: c:/log/rel33/Log4j/test.log, false
> log4j: setFile ended
>
> The file test.log exists in the directory and is empty after every minute
> but the file test.log.2002-09-03-08-49 is never created. What can be the
> problem here?
>
> Thanks, Alex.
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>