![]() |
|
|
|
|
Issue Type:
|
Bug
|
|
Affects Versions:
|
0.9.21 |
|
Assignee:
|
Logback dev list
|
|
Attachments:
|
logbackFOLD.xml.27-03-2014_101442_per_minute |
|
Components:
|
logback-core |
|
Created:
|
27/Mar/14 11:17 PM
|
|
Description:
|
When I set up maxHistory in the XML file , for files deletion does not delete the files . I had my setup to keep 30 days of files , but did not work, and then I tried,for testing purposes with minutes and keeping 2 files but also did not work
This is the Minute XML config I set up
<appender name="FOLD_LOG_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<File>/app/fold/logs/out.log</File>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- rollover daily -->
<fileNamePattern>/app/fold/logs/out_%d
{yyyy-MM-dd_HH-mm}
.txt</fileNamePattern>
<maxHistory>2</maxHistory>
</rollingPolicy>
<encoder>
<pattern>%d
{yyyy-MMM-dd HH:mm:ss.SSS}
[%thread] %-5level %logger
{36}
----- %msg%n</pattern>
</encoder>
</appender>
|
|
Environment:
|
Sun Solaris 10 , java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) Server VM (build 16.3-b01, mixed mode)
|
|
Project:
|
logback
|
|
Labels:
|
RollingFileAppender
rollingPolicy
TimeBasedRollingPolicy
|
|
Priority:
|
Major
|
|
Reporter:
|
Gabriel Buenader
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
_______________________________________________
logback-dev mailing list
[email protected]
http://mailman.qos.ch/mailman/listinfo/logback-dev