This is an automated email from the ASF dual-hosted git repository.
jamesbognar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/juneau.git
The following commit(s) were added to refs/heads/master by this push:
new a4db5c8ae6 Suppress test console noise via logback-test.xml and
logging.properties
a4db5c8ae6 is described below
commit a4db5c8ae6cc14a03f1ec4689049f3135fd36dca
Author: James Bognar <[email protected]>
AuthorDate: Thu Jun 4 08:35:28 2026 -0400
Suppress test console noise via logback-test.xml and logging.properties
- logback-test.xml: quiets known noisy third-party loggers (Thymeleaf,
OpenSAML, Tomcat/Spring lifecycle) while keeping root at WARN
- logging.properties: sets ConsoleHandler.level=OFF to silence all JUL
output during tests (real Juneau logging routes through SLF4J/Logback)
- Both files include Apache license headers for RAT compliance
Co-authored-by: Cursor <[email protected]>
---
juneau-utest/src/test/resources/logback-test.xml | 37 ++++++++++++++++++++++
juneau-utest/src/test/resources/logging.properties | 17 ++++++++++
2 files changed, 54 insertions(+)
diff --git a/juneau-utest/src/test/resources/logback-test.xml
b/juneau-utest/src/test/resources/logback-test.xml
new file mode 100644
index 0000000000..3a7add9604
--- /dev/null
+++ b/juneau-utest/src/test/resources/logback-test.xml
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * 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="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
+ <encoder>
+ <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger --
%msg%n</pattern>
+ </encoder>
+ </appender>
+
+ <!-- Expected negative-path tests intentionally trigger these
libraries. -->
+ <logger name="org.thymeleaf.TemplateEngine" level="OFF"/>
+ <logger name="org.opensaml.xmlsec.encryption.support.Decrypter"
level="OFF"/>
+ <logger name="org.opensaml.saml.saml2.encryption.Decrypter"
level="OFF"/>
+ <logger name="org.apache.xml.security.signature.XMLSignature"
level="ERROR"/>
+ <logger name="org.apache.tomcat.util.modeler.Registry" level="ERROR"/>
+ <logger
name="org.springframework.context.annotation.AnnotationConfigApplicationContext"
level="ERROR"/>
+ <logger
name="org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter"
level="OFF"/>
+
+ <!-- Tomcat stop warnings are environment noise in unit tests. -->
+ <logger name="org.apache.catalina.loader.WebappClassLoaderBase"
level="ERROR"/>
+
+ <!-- Keep genuine warnings/errors visible while removing INFO startup
chatter. -->
+ <root level="WARN">
+ <appender-ref ref="STDOUT"/>
+ </root>
+</configuration>
diff --git a/juneau-utest/src/test/resources/logging.properties
b/juneau-utest/src/test/resources/logging.properties
new file mode 100644
index 0000000000..62bf7c49da
--- /dev/null
+++ b/juneau-utest/src/test/resources/logging.properties
@@ -0,0 +1,17 @@
+# 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.
+
+# Silence all JUL console output during tests; real Juneau logging routes
through SLF4J -> Logback.
+handlers=java.util.logging.ConsoleHandler
+.level=INFO
+
+java.util.logging.ConsoleHandler.level=OFF
+java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter