This is an automated email from the ASF dual-hosted git repository.
adamsaghy pushed a commit to branch maintenance/1.16.0
in repository https://gitbox.apache.org/repos/asf/fineract.git
The following commit(s) were added to refs/heads/maintenance/1.16.0 by this
push:
new f2040893cf FINERACT-2684: Update logback configuration to remove
deprecated if condition
f2040893cf is described below
commit f2040893cfee2ce357e26a53448c78f0cb4f589b
Author: mark.vituska <[email protected]>
AuthorDate: Mon Oct 19 11:07:02 2026 +0200
FINERACT-2684: Update logback configuration to remove deprecated if
condition
(cherry picked from commit 10ed88a5456ad864a8981e787fa77519063fb1f8)
---
.../src/main/resources/logback-spring.xml | 23 ++++++++++++++--------
1 file changed, 15 insertions(+), 8 deletions(-)
diff --git a/fineract-provider/src/main/resources/logback-spring.xml
b/fineract-provider/src/main/resources/logback-spring.xml
index 84fe601f2c..95a167e0cb 100644
--- a/fineract-provider/src/main/resources/logback-spring.xml
+++ b/fineract-provider/src/main/resources/logback-spring.xml
@@ -27,7 +27,7 @@
<include resource="org/springframework/boot/logging/logback/defaults.xml"/>
<conversionRule conversionWord="tenantId"
-
converterClass="org.apache.fineract.infrastructure.core.logging.TenantIdentifierLoggingConverter"
/>
+
class="org.apache.fineract.infrastructure.core.logging.TenantIdentifierLoggingConverter"
/>
<appender name="CONSOLE" target="System.out"
class="ch.qos.logback.core.ConsoleAppender">
<encoder>
@@ -41,15 +41,22 @@
<logger name="org.apache.fineract"
level="${FINERACT_LOGGING_LEVEL:-INFO}"/>
<logger name="liquibase" level="warn"/>
- <if condition="${jsonLoggingEnabled} == true">
+ <!-- Janino-based <if condition="..."> was removed in logback 1.5.37, use
the <condition> element instead -->
+ <condition class="ch.qos.logback.core.boolex.PropertyEqualityCondition">
+ <key>jsonLoggingEnabled</key>
+ <value>true</value>
+ </condition>
+ <if>
<then>
<appender name="JSON" class="ch.qos.logback.core.ConsoleAppender">
- <layout class="ch.qos.logback.contrib.json.classic.JsonLayout">
- <jsonFormatter
class="ch.qos.logback.contrib.jackson.JacksonJsonFormatter">
- <prettyPrint>false</prettyPrint>
- </jsonFormatter>
- <appendLineSeparator>true</appendLineSeparator>
- </layout>
+ <encoder
class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
+ <layout
class="ch.qos.logback.contrib.json.classic.JsonLayout">
+ <jsonFormatter
class="ch.qos.logback.contrib.jackson.JacksonJsonFormatter">
+ <prettyPrint>false</prettyPrint>
+ </jsonFormatter>
+ <appendLineSeparator>true</appendLineSeparator>
+ </layout>
+ </encoder>
</appender>
<root level="info">