Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
None
-
None
-
Description
Environnement: Windows, Webapp in Tomcat 8, Java8
I have a problem with rolling over files when i use RollingFileAppender, when my filename contains the "-" chacarter.
Example :
<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>
Attachments
Issue Links
- depends on
-
LOGBACK-58 continuous size based rolling in case file renaming fails
- Open