From logback-dev at qos.ch Thu Aug 3 15:01:00 2023 From: logback-dev at qos.ch (logback developers list) Date: Thu, 3 Aug 2023 15:01:00 +0200 (CEST) Subject: [logback-dev] [JIRA] Updates for LOGBACK-1760: Variable (property) substitution in include file In-Reply-To: References: Message-ID: logback / LOGBACK-1760 [Open] Variable (property) substitution in include file ============================== Here's what changed in this issue in the last few minutes. This issue has been created This issue is now assigned to you. View or comment on issue using this link https://jira.qos.ch/browse/LOGBACK-1760 ============================== Issue created ------------------------------ Ceki Gülcü created this issue on 03/Aug/23 14:49 Summary: Variable (property) substitution in include file Issue Type: Sub-task Affects Versions: 1.3.8, 1.4.8 Assignee: Logback dev list Components: Joran Created: 03/Aug/23 14:49 Fix Versions: 1.3.9, 1.4.9 Priority: Major Reporter: Ceki Gülcü ============================== This message was sent by Atlassian Jira (v9.6.0#960000-sha1:a3ee8af) From logback-dev at qos.ch Thu Aug 10 17:42:00 2023 From: logback-dev at qos.ch (logback developers list) Date: Thu, 10 Aug 2023 17:42:00 +0200 (CEST) Subject: [logback-dev] [JIRA] Updates for LOGBACK-1761: Logback 1.4.8 -> 1.4.10 breaks Spring Boot 3.1.2 In-Reply-To: References: Message-ID: logback / LOGBACK-1761 [Open] Logback 1.4.8 -> 1.4.10 breaks Spring Boot 3.1.2 ============================== Here's what changed in this issue in the last few minutes. This issue has been created This issue is now assigned to you. View or comment on issue using this link https://jira.qos.ch/browse/LOGBACK-1761 ============================== Issue created ------------------------------ Garret Wilson created this issue on 10/Aug/23 17:30 Summary: Logback 1.4.8 -> 1.4.10 breaks Spring Boot 3.1.2 Issue Type: Bug Assignee: Logback dev list Components: logback-core Created: 10/Aug/23 17:30 Priority: Critical Reporter: Garret Wilson Description: I am using this just-release {{com.globalmentor:globalmentor-root:0.8.16}} POM as a parent: https://github.com/globalmentor/globalmentor-root/blob/main/pom.xml . It sets the {{logback.version}} Maven property to {{1.4.10}}, and then puts some Logback artifacts under dependency management. {code:xml} ch.qos.logback logback-access ${logback.version} ch.qos.logback logback-classic ${logback.version} ch.qos.logback logback-core ${logback.version} {code} (Unfortunately Logback doesn't have a BOM; see SLF4J-437.) In my child POM I am using Spring Boot, with {{spring.boot.version}} similarly set to {{3.1.2}} in the parent POM: {code:xml} org.springframework.boot spring-boot-dependencies ${spring.boot.version} pom import {code} This all means that I am using Spring Boot 3.1.2, but pulling in {{logback-access}}, {{logback-classic}}, and {{logback-core}} at v1.4.10 to override the v1.4.8 brought in by {{spring-boot-starter-logging}}. Unfortunately when I run a Spring Boot application it gives me: {noformat} Exception in thread "main" java.lang.AbstractMethodError: Receiver class org.springframework.boot.logging.logback.RootLogLevelConfigurator does not define or inherit an implementation of the resolved method 'abstract ch.qos.logback.classic.spi.Configurator$ExecutionStatus configure(ch.qos.logback.core.Context)' of interface ch.qos.logback.classic.spi.Configurator. at ch.qos.logback.classic.util.ContextInitializer.invokeConfigure(ContextInitializer.java:122) at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:87) at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:65) at ch.qos.logback.classic.spi.LogbackServiceProvider.initializeLoggerContext(LogbackServiceProvider.java:52) at ch.qos.logback.classic.spi.LogbackServiceProvider.initialize(LogbackServiceProvider.java:41) at org.slf4j.LoggerFactory.bind(LoggerFactory.java:183) at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:170) at org.slf4j.LoggerFactory.getProvider(LoggerFactory.java:455) at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:441) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:390) at org.apache.commons.logging.LogAdapter$Slf4jAdapter.createLocationAwareLog(LogAdapter.java:121) at org.apache.commons.logging.LogAdapter.createLog(LogAdapter.java:95) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:67) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:59) at org.springframework.boot.SpringApplication.(SpringApplication.java:185) at ….main(….java:27) {noformat} This tells me there is at least one of two problems going on: * Logback 1.4.10 is incompatible with Spring Boot 3.1.2, and/or * Something in {{logback-access}}, {{logback-classic}}, and {{logback-core}} at v1.4.10 depends on some other Logback artifact I missed, which is still set out v1.4.8 because of Spring Boot. (I wouldn't have this second doubt if there was a Logback BOM.) You will know better than me what changed between Logback v1.4.8 and v1.4.10 that might be causing this message, or that might depend on some other updated Logback artifact. For now I will set {{logback.version}} back to {{1.4.8}} so the program will run, but this seems pretty urgent to address, either by fixing the incompatibility, or by providing a BOM to ensure that all artifacts are updated in sync. ============================== This message was sent by Atlassian Jira (v9.6.0#960000-sha1:a3ee8af) From logback-dev at qos.ch Thu Aug 10 18:22:00 2023 From: logback-dev at qos.ch (logback developers list) Date: Thu, 10 Aug 2023 18:22:00 +0200 (CEST) Subject: [logback-dev] [JIRA] (LOGBACK-1761) Logback 1.4.8 -> 1.4.10 breaks Spring Boot 3.1.2 In-Reply-To: References: Message-ID: An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 403 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 1084 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 3408 bytes Desc: not available URL: From logback-dev at qos.ch Thu Aug 10 18:23:00 2023 From: logback-dev at qos.ch (logback developers list) Date: Thu, 10 Aug 2023 18:23:00 +0200 (CEST) Subject: [logback-dev] [JIRA] (LOGBACK-1761) Logback 1.4.8 -> 1.4.10 breaks Spring Boot 3.1.2 In-Reply-To: References: Message-ID: An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 403 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 1084 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 3408 bytes Desc: not available URL: From logback-dev at qos.ch Wed Aug 16 09:28:00 2023 From: logback-dev at qos.ch (logback developers list) Date: Wed, 16 Aug 2023 09:28:00 +0200 (CEST) Subject: [logback-dev] [JIRA] Updates for LOGBACK-1762: SizeAndTimeBasedRollingPolicy not deleting log files at all In-Reply-To: References: Message-ID: logback / LOGBACK-1762 [Open] SizeAndTimeBasedRollingPolicy not deleting log files at all ============================== Here's what changed in this issue in the last few minutes. This issue has been created This issue is now assigned to you. View or comment on issue using this link https://jira.qos.ch/browse/LOGBACK-1762 ============================== Issue created ------------------------------ Neha Sahni created this issue on 16/Aug/23 9:16 Summary: SizeAndTimeBasedRollingPolicy not deleting log files at all Issue Type: Bug Affects Versions: 1.2.2, 1.2.8 Assignee: Logback dev list Components: logback-core Created: 16/Aug/23 9:16 Labels: SizeAndTimeBasedRollingPolicy archiveRemover Priority: Major Reporter: Neha Sahni Description: I have tried using logback version 1.2.2 and 1.2.8 with slf4j version of 1.7.21 The log files are not deleting as per the SizeAndTimeBasedRollingPolicy settings logs/application.log             logs/application_%d\{yyyy-MM-dd}.%i.log.zip             14             5GB             15MB   When I tried to debug TimeBasedArchiveRemover class of logback core, I can see in method cleanPeriod() the files to be deleted are correctly identified and the code tries to delete them but file.delete returns false due to "The process cannot access the file because it is being used by another process."  And when I checked more on which process can be holding the files, it gives the process Id of my java application itself. Not sure what exactly is holding these files and not letting logback delete them     ============================== This message was sent by Atlassian Jira (v9.6.0#960000-sha1:a3ee8af) From logback-dev at qos.ch Wed Aug 16 11:34:00 2023 From: logback-dev at qos.ch (logback developers list) Date: Wed, 16 Aug 2023 11:34:00 +0200 (CEST) Subject: [logback-dev] [JIRA] (LOGBACK-1762) SizeAndTimeBasedRollingPolicy not deleting log files at all In-Reply-To: References: Message-ID: An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 403 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 1084 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 3408 bytes Desc: not available URL: From logback-dev at qos.ch Wed Aug 16 15:45:00 2023 From: logback-dev at qos.ch (logback developers list) Date: Wed, 16 Aug 2023 15:45:00 +0200 (CEST) Subject: [logback-dev] [JIRA] (LOGBACK-1762) SizeAndTimeBasedRollingPolicy not deleting log files at all In-Reply-To: References: Message-ID: An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 403 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 1084 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 799 bytes Desc: not available URL: From logback-dev at qos.ch Wed Aug 16 16:45:00 2023 From: logback-dev at qos.ch (logback developers list) Date: Wed, 16 Aug 2023 16:45:00 +0200 (CEST) Subject: [logback-dev] [JIRA] (LOGBACK-1762) SizeAndTimeBasedRollingPolicy not deleting log files at all In-Reply-To: References: Message-ID: An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 403 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 1084 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 3408 bytes Desc: not available URL: From logback-dev at qos.ch Thu Aug 17 08:35:00 2023 From: logback-dev at qos.ch (logback developers list) Date: Thu, 17 Aug 2023 08:35:00 +0200 (CEST) Subject: [logback-dev] [JIRA] (LOGBACK-1762) SizeAndTimeBasedRollingPolicy not deleting log files at all In-Reply-To: References: Message-ID: An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 403 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 1084 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 799 bytes Desc: not available URL: From logback-dev at qos.ch Thu Aug 17 10:52:00 2023 From: logback-dev at qos.ch (logback developers list) Date: Thu, 17 Aug 2023 10:52:00 +0200 (CEST) Subject: [logback-dev] [JIRA] (LOGBACK-1762) SizeAndTimeBasedRollingPolicy not deleting log files at all In-Reply-To: References: Message-ID: An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 403 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 1084 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 799 bytes Desc: not available URL: From logback-dev at qos.ch Thu Aug 17 23:26:00 2023 From: logback-dev at qos.ch (logback developers list) Date: Thu, 17 Aug 2023 23:26:00 +0200 (CEST) Subject: [logback-dev] [JIRA] (LOGBACK-1762) SizeAndTimeBasedRollingPolicy not deleting log files at all In-Reply-To: References: Message-ID: An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 403 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 1084 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 3408 bytes Desc: not available URL: From logback-dev at qos.ch Fri Aug 18 14:35:00 2023 From: logback-dev at qos.ch (logback developers list) Date: Fri, 18 Aug 2023 14:35:00 +0200 (CEST) Subject: [logback-dev] [JIRA] (LOGBACK-1762) SizeAndTimeBasedRollingPolicy not deleting log files at all In-Reply-To: References: Message-ID: An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 403 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 1084 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 799 bytes Desc: not available URL: From logback-dev at qos.ch Tue Aug 22 21:05:00 2023 From: logback-dev at qos.ch (logback developers list) Date: Tue, 22 Aug 2023 21:05:00 +0200 (CEST) Subject: [logback-dev] [JIRA] (LOGBACK-1746) insertFromJNDI resolves AFTER include in 1.4.x In-Reply-To: References: Message-ID: An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 403 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 1084 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 1054 bytes Desc: not available URL: From logback-dev at qos.ch Wed Aug 23 07:29:51 2023 From: logback-dev at qos.ch (logback developers list) Date: Wed, 23 Aug 2023 05:29:51 +0000 Subject: [logback-dev] SizeAndTimeBasedRollingPolicy not removing old files when aux is used In-Reply-To: References: Message-ID: 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. c:/temp/logs/spring-FILE-boot.%d{yyyy-MM-dd} - %-3i - %d{HH.mm.ss, aux}.log 500KB 5 1MB true %-20(%d{dd.MM.yyyy HH:mm:ss.SSS} [%-20thread]) %-5level %msg [%logger:%line]%n Is this a bug, or maybe not supported ? Med vennlig hilsen Bjørn-Willy Arntzen Sensitivitet: Begrenset -------------- next part -------------- An HTML attachment was scrubbed... URL: From logback-dev at qos.ch Wed Aug 23 13:37:00 2023 From: logback-dev at qos.ch (logback developers list) Date: Wed, 23 Aug 2023 13:37:00 +0200 (CEST) Subject: [logback-dev] [JIRA] (LOGBACK-1523) Re-Introduce Groovy config support (Groovy Support for Java >= 9 works) In-Reply-To: References: Message-ID: An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 1084 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 460 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 2917 bytes Desc: not available URL: From logback-dev at qos.ch Wed Aug 23 13:38:00 2023 From: logback-dev at qos.ch (logback developers list) Date: Wed, 23 Aug 2023 13:38:00 +0200 (CEST) Subject: [logback-dev] [JIRA] (LOGBACK-1606) Bring Back Groovy Config and use SecureASTCustomizer to secure it In-Reply-To: References: Message-ID: An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 1084 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 460 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 2917 bytes Desc: not available URL: From logback-dev at qos.ch Thu Aug 24 23:24:39 2023 From: logback-dev at qos.ch (logback developers list) Date: Thu, 24 Aug 2023 23:24:39 +0200 Subject: [logback-dev] SizeAndTimeBasedRollingPolicy not removing old files when aux is used In-Reply-To: References: Message-ID: 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. > >   > > class="ch.qos.logback.core.rolling.RollingFileAppender"> > >     class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> > >         c:/temp/logs/spring-FILE-boot.%d{yyyy-MM-dd} - > %-3i *- %d{HH.mm.ss, aux}*.log > >         500KB    > >         5 > >         1MB > >         true > >     > >     > >         %-20(%d{dd.MM.yyyy HH:mm:ss.SSS} [%-20thread]) %-5level > %msg [%logger:%line]%n > >     > >     > >   > > Is this a bug, or maybe not supported ? > >   > >   > > Med vennlig hilsen > > *Bjørn-Willy Arntzen* > >   > From logback-dev at qos.ch Fri Aug 25 16:26:38 2023 From: logback-dev at qos.ch (logback developers list) Date: Fri, 25 Aug 2023 14:26:38 +0000 Subject: [logback-dev] SizeAndTimeBasedRollingPolicy not removing old files when aux is used In-Reply-To: References: Message-ID: 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 På vegne av logback developers list via logback-dev Sendt: torsdag 24. august 2023 23:25 Til: logback developers list via logback-dev Kopi: logback developers list 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. > > > > class="ch.qos.logback.core.rolling.RollingFileAppender"> > > class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> > > c:/temp/logs/spring-FILE-boot.%d{yyyy-MM-dd} > - %-3i *- %d{HH.mm.ss, aux}*.log > > 500KB > > 5 > > 1MB > > true > > > > > > %-20(%d{dd.MM.yyyy HH:mm:ss.SSS} [%-20thread]) > %-5level %msg [%logger:%line]%n > > > > > > > > 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 From logback-dev at qos.ch Fri Aug 25 18:01:00 2023 From: logback-dev at qos.ch (logback developers list) Date: Fri, 25 Aug 2023 18:01:00 +0200 (CEST) Subject: [logback-dev] [JIRA] Updates for LOGBACK-1763: izeAndTimeBasedRollingPolicy not removing old files when aux is used In-Reply-To: References: Message-ID: logback / LOGBACK-1763 [Open] izeAndTimeBasedRollingPolicy not removing old files when aux is used ============================== Here's what changed in this issue in the last few minutes. This issue has been created This issue is now assigned to you. View or comment on issue using this link https://jira.qos.ch/browse/LOGBACK-1763 ============================== Issue created ------------------------------ Bjørn-Willy Arntzen created this issue on 25/Aug/23 17:50 Summary: izeAndTimeBasedRollingPolicy not removing old files when aux is used Issue Type: Bug Affects Versions: 1.2.11 Assignee: Logback dev list Created: 25/Aug/23 17:50 Environment: Spring boot 2.7 with logback 2.11 Priority: Major Reporter: Bjørn-Willy Arntzen Description: Using this appender, the files are not deleted. It works without the aux date, but in my case the aux date is very important.             c:/temp/logs/spring-FILE-boot.%d\{yyyy-MM-dd} - %-3i - %d\{HH.mm.ss, aux}.log         500KB             5         1MB         true                 %-20(%d\{dd.MM.yyyy HH:mm:ss.SSS} [%-20thread]) %-5level %msg [%logger:%line]%n         ============================== This message was sent by Atlassian Jira (v9.6.0#960000-sha1:a3ee8af) From logback-dev at qos.ch Mon Aug 28 07:11:00 2023 From: logback-dev at qos.ch (logback developers list) Date: Mon, 28 Aug 2023 07:11:00 +0200 (CEST) Subject: [logback-dev] [JIRA] (LOGBACK-1763) SizeAndTimeBasedRollingPolicy not removing old files when aux is used In-Reply-To: References: Message-ID: An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 403 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 1084 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 1156 bytes Desc: not available URL: