[logback-dev] [JIRA] (LOGBACK-1313) RollingFileAppender / SizeBasedTriggeringPolicy : filename with character "-' is not rolled over

QOS.CH (JIRA) noreply-jira at qos.ch
Mon Jun 12 10:38:00 CEST 2017


Abdelhafid Allou created LOGBACK-1313:
-----------------------------------------

             Summary: RollingFileAppender / SizeBasedTriggeringPolicy : filename with character "-' is not rolled over 
                 Key: LOGBACK-1313
                 URL: https://jira.qos.ch/browse/LOGBACK-1313
             Project: logback
          Issue Type: Bug
         Environment:  

 
            Reporter: Abdelhafid Allou
            Assignee: Logback dev list


I have a problem with rolling over files when i use RollingFileAppender, when my filename contains the "-" chacarter.

Example :
{code:java}
<appender name="LOG-FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
 <file>${LOG_ROOT_PATH}/my-file.log</file>
 <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
 <Pattern>%d{yyyyMMddHHmmss}|%msg%n</Pattern>
 </encoder>
 <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
 <fileNamePattern>${LOG_ROOT_PATH}/my-file.%i.log</fileNamePattern>
 <maxHistory>10</maxHistory>
 </rollingPolicy>
 <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
 <maxFileSize>1MB</maxFileSize>
 </triggeringPolicy>
</appender>{code}



--
This message was sent by Atlassian JIRA
(v7.3.1#73012)


More information about the logback-dev mailing list