<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
<p class="p1">Hi </p>
<p class="p1"> I have the following log backup.xml </p>
<p class="p1"><configuration scan="true" scanPeriod="30 seconds"></p>
<p class="p1"> <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"></p>
<p class="p1"> <file>/opt/apps/scms/logs/scms.log</file></p>
<p class="p1"> <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"></p>
<p class="p1"> <!-- rollover daily --></p>
<p class="p1"> <fileNamePattern>/opt/apps/scms/logs/scms-%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern></p>
<p class="p1"> <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"></p>
<p class="p1"> <maxFileSize>100MB</maxFileSize></p>
<p class="p1"> </timeBasedFileNamingAndTriggeringPolicy></p>
<p class="p1"> </rollingPolicy></p>
<p class="p1"> <encoder></p>
<p class="p1"> <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS,PST} [%thread] %-5level %X{user} %logger{0} - %msg%n%xEx{3}</pattern></p>
<p class="p1"> <outputPatternAsHeader>true</outputPatternAsHeader></p>
<p class="p1"> </encoder></p>
<p class="p1"> </appender></p>
<p class="p1">…</p>
<p class="p1">And this use to work fine.. Since 10 days ago I deploy my application and since then instead the files being rolled on daily bases or if they reach 100MB I have 10s of smaller than 1MB files.. One or two of the log files each they are 1.2 or max 1.5 MB.. </p>
<p class="p1">I have made sure that this configuration is being used by changing the maxFileSize to <maxFileSize>10KB</maxFileSize> and logs are less than 10KB .. </p>
<p class="p1">Anyone out there has seen similar issues or can give me a clue what I am doing wrong…</p>
<p class="p1">Thanks</p>
<p class="p1">Parimah Mehrrostami</p> </div></body>
</html>