Issue Type: Bug Bug
Affects Versions: 1.0.6
Assignee: Logback dev list
Components: logback-core
Created: 23/Aug/12 4:44 PM
Description: Hi

>From my understanding of reading the online doc the following config should give:
- an active log named /home/johnx/MYAPP/john/logs/generic/generic.log
- a daily rollover due to the primary %d{yyyyMMdd}
- archived log files daily or when the file size reaches 10MB in a monthly directory due to the auxilliary %d{yyyyMM,aux}

Effectively I'm expecting:

Active log
/home/johnx/MYAPP/john/logs/generic/generic.log

Archived logs
/home/johnx/MYAPP/john/logs/generic/201207/
generic.log.20120701.0 > rollover at midnight or following log event after midnight
generic.log.20120702.0 > 10MB
generic.log.20120702.1 > 10MB
generic.log.20120702.3 > rollover at midnight or following log event after midnight
etc...

/home/johnx/MYAPP/john/logs/generic/201208/
etc...

Instead (see debug logs) the aux parameter is not taken into account and %d{yyyyMM,aux} is used to decide there should
be a monthly rollover...

I assume it's a bug but maybe I'm missing something...


    <appender name="FILE.GENERIC" class="ch.qos.logback.core.rolling.RollingFileAppender">
        <prudent>false</prudent>
        <append>true</append>
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
       <level>DEBUG</level>
     </filter>
     <File>/home/johnx/MYAPP/john/logs/generic/generic.log</File>
        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
            <fileNamePattern>/home/jonhx/MYAPP/john/logs/generic/%d{yyyyMM,aux}/generic.log.%d{yyyyMMdd}.%i</fileNamePattern>
            <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
                <maxFileSize>10MB</maxFileSize>
            </timeBasedFileNamingAndTriggeringPolicy>
            <maxHistory>10</maxHistory>
            <cleanHistoryOnStart>false</cleanHistoryOnStart>
        </rollingPolicy>
        <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
            <charset>UTF-8</charset>
            <pattern>%d{ISO8601} %-8(%6p) %m%n</pattern>
        </encoder>
    </appender>
    
      
11:36:05,496 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
11:36:05,498 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [FILE.GENERIC]
11:36:05,531 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@42:34 - no applicable action for [cleanHistoryOnStart], current pattern is [[configuration][appender][rollingPolicy][cleanHistoryOnStart]]
11:36:05,535 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - No compression will be used
11:36:05,536 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - Will use the pattern /home/johnx/MYAPP/john/logs/generic/%d{yyyyMM,aux}/generic.log.%d{yyyyMMdd}.%i for the active file
11:36:05,539 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@7eaf8890 - The date pattern is 'yyyyMM' from file name pattern '/home/johnx/MYAPP/john/logs/generic/%d{yyyyMM,aux}/generic.log.%d{yyyyMMdd}.%i'.
11:36:05,539 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@7eaf8890 - Rollover at start of every month.
11:36:05,542 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@7eaf8890 - Setting initial period to Thu Aug 23 11:36:05 BST 2012
11:36:05,544 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[FILE.GENERIC] - Active log file name: /home/johnx/MYAPP/john/logs/generic/generic.log
11:36:05,544 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[FILE.GENERIC] - File property is set to [/home/johnx/MYAPP/john/logs/generic/generic.log]

Thank you.
Environment: Scientific Linux 6.3 (64-bit)
Project: logback
Priority: Major Major
Reporter: Frederic Soulier
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