[logback-user] TimeBasedRollingPolicy stop rolling after running for some time

fengqiang at mwi.com.sg fengqiang at mwi.com.sg
Mon Sep 4 16:55:52 CEST 2017

Thanks a lot for the info. I will try to set the debug mode


Thanks & Best Regards

Feng Qiang

Metropolitan Wireless International


From: logback-user [mailto:logback-user-bounces at qos.ch] On Behalf Of Olexandr Demura
Sent: Monday, September 4, 2017 6:56 PM
To: logback users list <logback-user at qos.ch>
Subject: Re: [logback-user] TimeBasedRollingPolicy stop rolling after running for some time


Have you checked logback status data?

You could turn on writing it to console by <configuration debug="true"> as in https://logback.qos.ch/manual/configuration.html#dumpingStatusData

If it has problems with renaming or compression, e.g. caused by relative base name of # in target name, it should be in status.

And compression is done asyncronously which means, in addition to it being harder to read status logs, what it is not counted as failure if something wrong there.



2017-09-01 11:46 GMT+03:00 fengqiang <fengqiang at mwi.com.sg <mailto:fengqiang at mwi.com.sg> >:

Hello  we are using logback for our server.  one issue keeps on happening for
more than one year. We are using TimeBasedRollingPolicy, the logback works
well when server starts and the log rolls according to size and date
correctly. However it stops rolling after running for some time (1 or 2
weeks) and the log file become extremely huge, 1 or 2 GB.  Recently I found
it started when we copied logs from the server, then the rolling stop, the
size of all the log files in the folder increase without stop.  my logback
configuration is as follows:
<configuration  scan="true" scanPeriod="300 seconds">

        <appender name="DATAMGR_FILE"

                <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">


                <layout class="ch.qos.logback.classic.PatternLayout">
                  <Pattern>%d{yyyy-MM-dd HH:mm:ss.SSS}; [%thread]; %-5level;
%class{30}.%method:%line; %msg%n</Pattern>

         <logger name="com.mwi.cad.datamgr" level="info"  additivity="false">
                <appender-ref ref="DATAMGR_FILE" />

Anybody could give me some idea what I should do to solve this problem.  Is
there any work around I can do? any enlightenment would be greatly

Sent from: http://logback.10977.n7.nabble.com/Users-f3.html
logback-user mailing list
logback-user at qos.ch <mailto:logback-user at qos.ch> 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20170904/f4610227/attachment.html>

More information about the logback-user mailing list