| <?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. | |
| --> | |
| <!-- | |
| Shared quiet-by-default Logback config for the whole reactor's tests. | |
| Referenced by every module's Surefire execution via the root pom's | |
| maven-surefire-plugin <systemPropertyVariables>: | |
| <logback.configurationFile>${maven.multiModuleProjectDirectory}/src/test/resources/logback-test.xml</logback.configurationFile> | |
| Using the logback.configurationFile system property (rather than a per-module | |
| classpath logback-test.xml) gives one authoritative source with no drift. | |
| Policy: root level=WARN so genuine warnings/errors STILL print - only INFO | |
| startup chatter is removed. Named loggers below are silenced only because | |
| expected negative-path tests intentionally trigger those libraries; the list | |
| is a harmless superset (a logger that never fires in a given module is a no-op). | |
| Never set the root to OFF. | |
| --> | |
| <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> |