[logback-user] Logs lost when rolling

Germán Ferrari german.ferrari at gmail.com
Tue Feb 11 20:22:07 CET 2014


Hello.

I'm having some strange behaviour with
ch.qos.logback.core.rolling.TimeBasedRollingPolicy.

I have the same war file deployed in two servers, but in one of them the
logs of the day are lost when rolling ... I'm rolling daily at midnight.

The modification date of the files in the server with the problem (03:10)
coincides with a maintenance job which restarts the webserver.

Here is a summary of the files involved:

Server where the error occurs:
-rw-r--r--   1 webservd webservd     142 Feb  8 03:10 file.2014-02-07.log
-rw-r--r--   1 webservd webservd     261 Feb  9 03:10 file.2014-02-08.log
-rw-r--r--   1 webservd webservd    2.5K Feb 10 03:10 file.2014-02-09.log
-rw-r--r--   1 webservd webservd     261 Feb 11 03:10 file.2014-02-10.log
-rw-r--r--   1 webservd webservd   1004K Feb 11 12:40 file.log


Server where it works ok:
-rw-r--r--   1 webservd webservd    6.7M Feb  7 20:36 file.2014-02-07.log
-rw-r--r--   1 webservd webservd     41K Feb  8 12:10 file.2014-02-08.log
-rw-r--r--   1 webservd webservd    5.8M Feb 10 22:32 file.2014-02-10.log
-rw-r--r--   1 webservd webservd    2.1M Feb 11 12:43 file.log


The size of the files should be in the order of the megabytes, but, in the
server with the problem, it is in the order of bytes. The contents are just
some messages that are written when the application is shutdown, but all
the logs of the day are lost ...

Any hints of what could be happening?

Thank you.

Regards,
Germán
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20140211/484507c0/attachment-0001.html>


More information about the Logback-user mailing list