This is an automated email from the ASF dual-hosted git repository.

joerghoh pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-event.git


The following commit(s) were added to refs/heads/master by this push:
     new acc0962  SLING-13045 use logback logging in the ITs (#49)
acc0962 is described below

commit acc0962c1a27d200a040e0e27aca34800f3057ef
Author: Jörg Hoh <[email protected]>
AuthorDate: Tue Jan 6 13:48:12 2026 +0100

    SLING-13045 use logback logging in the ITs (#49)
---
 .../org/apache/sling/event/it/JobsTestSupport.java |  2 ++
 src/test/resources/logback.xml                     | 34 ++++++++++++++++++++++
 2 files changed, 36 insertions(+)

diff --git a/src/test/java/org/apache/sling/event/it/JobsTestSupport.java 
b/src/test/java/org/apache/sling/event/it/JobsTestSupport.java
index b69deff..6d5c513 100644
--- a/src/test/java/org/apache/sling/event/it/JobsTestSupport.java
+++ b/src/test/java/org/apache/sling/event/it/JobsTestSupport.java
@@ -22,6 +22,7 @@ import javax.inject.Inject;
 
 import org.apache.sling.event.impl.jobs.config.JobManagerConfiguration;
 import org.apache.sling.event.jobs.JobManager;
+import org.apache.sling.testing.paxexam.SlingOptions;
 import org.apache.sling.testing.paxexam.TestSupport;
 import org.ops4j.pax.exam.Option;
 import org.ops4j.pax.exam.options.ModifiableCompositeOption;
@@ -55,6 +56,7 @@ public abstract class JobsTestSupport extends TestSupport {
         return composite(
                         super.baseConfiguration(),
                         slingQuickstart(),
+                        SlingOptions.logback(),
                         // Sling Event
                         testBundle("bundle.filename"),
                         slingEvent(),
diff --git a/src/test/resources/logback.xml b/src/test/resources/logback.xml
new file mode 100644
index 0000000..4350910
--- /dev/null
+++ b/src/test/resources/logback.xml
@@ -0,0 +1,34 @@
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+
+<configuration>
+
+    <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
+        <layout class="ch.qos.logback.classic.PatternLayout">
+            <Pattern>
+                %d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n
+            </Pattern>
+        </layout>
+    </appender>
+
+    <root level="info">
+        <appender-ref ref="CONSOLE"/>
+    </root>
+
+</configuration>
\ No newline at end of file

Reply via email to