why Logback generates two log files?

Iam using Logback1.1.2 for logging and i am using Rollingfile appender and Time based rolling policy. It generates two files one with the log file (sample.log) and the other with yesterday's date (sample-2014-07-27.0.log). I am not sure why this is happening. Appreciate if anybody help on this. <appender name="ROLLING" class="ch.qos.logback.core.rolling.RollingFileAppender"> <if condition='property("logFolder").contains("log")'> <then> <file>${logFolder}/Sample/sample.log</file> </then> <else> <file>sample.log</file> </else> </if> <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> <fileNamePattern>sreg-%d{yyyy-MM-dd}.%i.log</fileNamePattern> <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> <maxFileSize>50MB</maxFileSize> </timeBasedFileNamingAndTriggeringPolicy> </rollingPolicy> <encoder> <pattern>[%d{ISO8601}] [%-18thread] - %-25c{0} - %-5p - %msg%n</pattern> </encoder> </appender> -- View this message in context: http://logback.10977.n7.nabble.com/why-Logback-generates-two-log-files-tp137... Sent from the Users mailing list archive at Nabble.com.
participants (1)
-
rampernati