This is an automated email from the ASF dual-hosted git repository. joerghoh pushed a commit to branch SLING-13045 in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-event.git
commit fce04f167f3b3cd1fd5b667f0cc6a5275dc87f33 Author: Joerg Hoh <[email protected]> AuthorDate: Fri Jan 2 18:43:56 2026 +0100 SLING-13045 use logback logging in the ITs --- .../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
