
Ceki, I haven't tested against HEAD yet. But I was tweaking with <maxHistory>, and it doesn't appear to obey when the filename pattern changes on the folder. This might be an unsupported configuration, but thought it might work since I saw it as an example on the website. "/wombat/%d{yyyy/MM}/foo.txt" [1] This is the config I'm testing with. <appender name="FILE-${KEY}" class="ch.qos.logback.core.rolling.RollingFileAppender"> <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"> <pattern>%d{HH:mm:ss.SSS zz} %-5level [%thread] %logger{35} [%-3X{KEY}] %msg%n</pattern> </encoder> <rollingPolicy class="com.touchnet.twp.contextconfig.lbclassic.CloseTBRP"> <fileNamePattern>${TEMP_FOLDER}/%d{HHmmss'/maxhist-key/key.'HHmmss }.${KEY}.%i.txt.zip</fileNamePattern> <maxHistory>1</maxHistory> <!-- date periods to keep in addition to current --> <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.CloseSTBFNATP"> <maxFileSize>1</maxFileSize> <!-- testing if index values were counted in history --> </timeBasedFileNamingAndTriggeringPolicy> </rollingPolicy> </appender> [1] http://logback.qos.ch/manual/appenders.html Thanks, -- TJ On Fri, Nov 11, 2011 at 2:15 AM, ceki <ceki@qos.ch> wrote:
So does compression with SiftingAppender work now? -- Ceki http://twitter.com/#!/ceki
On 10.11.2011 18:35, TJ Rothwell wrote:
Done.
http://jira.qos.ch/browse/**LBCORE-236<http://jira.qos.ch/browse/LBCORE-236>
On Thu, Nov 10, 2011 at 11:24 AM, ceki <ceki@qos.ch <mailto:ceki@qos.ch>> wrote:
On 10.11.2011 17:14, TJ Rothwell wrote:
Ceki,
There was one additional problem I ran into so I'm unable to use the stock SizeAndTimeBasedFNATP.
computeCurrentPeriodsHighestCo**__unterValue(String) assumes that
it will write to the last index'd value even though it was already compressed.
I just modified computeCurrentPeriodsHighestCo**__unterValue so that
it takes into account compression of the latest file
Please test it. A new bug report regarding this issue is still warranted. Please create it. -- Ceki
______________________________**_________________ Logback-user mailing list Logback-user@qos.ch http://mailman.qos.ch/mailman/**listinfo/logback-user<http://mailman.qos.ch/mailman/listinfo/logback-user>