[logback-dev] SizeAndTimeBasedRollingPolicy not removing old files when aux is used
logback developers list
logback-dev at qos.ch
Fri Aug 25 16:26:38 CEST 2023
Still no JIRA invite received yet ....
Med vennlig hilsen
Bjørn-Willy Arntzen
Seniorkonsulent IT
Kommunal Landspensjonskasse gjensidig forsikringsselskap
Dronning Eufemias gate 10, 0191 Oslo, Pb 400, Sentrum, 0103 Oslo
Mob: +47 977 59 007
http://www.klp.no/
Sensitivitet: Begrenset
-----Opprinnelig melding-----
Fra: logback-dev <logback-dev-bounces at qos.ch> På vegne av logback developers list via logback-dev
Sendt: torsdag 24. august 2023 23:25
Til: logback developers list via logback-dev <logback-dev at qos.ch>
Kopi: logback developers list <logback-dev at qos.ch>
Emne: Re: [logback-dev] SizeAndTimeBasedRollingPolicy not removing old files when aux is used
Hello Bjørn-Willy,
Can you please create a jira issue for this at jira.qos.ch?
I will send you an invitation to create the account.
Best regards,
--
Ceki Gülcü
Sponsoring SLF4J/logback/reload4j at https://github.com/sponsors/qos-ch
On 8/23/2023 7:29 AM, logback developers list via logback-dev wrote:
>
>
> HI.
>
> Using this appender, the files are not deleted. It works without the
> aux date, but in my case the aux date is very important.
>
>
>
> <appender name="FILE"
> class="ch.qos.logback.core.rolling.RollingFileAppender">
>
> <rollingPolicy
> class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
>
> <fileNamePattern>c:/temp/logs/spring-FILE-boot.%d{yyyy-MM-dd}
> - %-3i *- %d{HH.mm.ss, aux}*.log</fileNamePattern>
>
> <maxFileSize>500KB</maxFileSize>
>
> <maxHistory>5</maxHistory>
>
> <totalSizeCap>1MB</totalSizeCap>
>
> <cleanHistoryOnStart>true</cleanHistoryOnStart>
>
> </rollingPolicy>
>
> <encoder>
>
> <pattern>%-20(%d{dd.MM.yyyy HH:mm:ss.SSS} [%-20thread])
> %-5level %msg [%logger:%line]%n</pattern>
>
> </encoder>
>
> </appender>
>
>
>
> Is this a bug, or maybe not supported ?
>
>
>
>
>
> Med vennlig hilsen
>
> *Bjørn-Willy Arntzen*
>
>
>
_______________________________________________
logback-dev mailing list
logback-dev at qos.ch
https://mailman.qos.ch/cgi-bin/mailman/listinfo/logback-dev
More information about the logback-dev
mailing list