I created a login in our project and use the org.slf4j.LoggerFactory and org.slf4j.Logger library. But we are still facing a rollover problem, since we started using it. The problem is that after tipping the log file instead of saving the logs in the newly created file, it saves the logs in an upside down file. Below is my logback.xml configuration. For example, instead of logging into proj.log, it will be written to proj.2015-05-25.log. Any suggestion to fix this problem?
<file>/home/proj/proj-conf/logs/proj.log</file> <encoder> <pattern>%d %-5p %c{1} - %m%n</pattern> </encoder> <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> <fileNamePattern>/home/proj/proj-conf/logs/proj.%d{yyyy-MM-dd_HH}.%i.log</fileNamePattern> <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> <maxFileSize>5MB</maxFileSize> </timeBasedFileNamingAndTriggeringPolicy> <maxHistory>30</maxHistory> </rollingPolicy>
##
source share