blob: 0b712f7e47c450e474948395f5164dea73a9da4f [file]
# 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 java.util.logging (JUL) config for the whole reactor's tests.
#
# Referenced by every module's Surefire execution via the root pom's
# maven-surefire-plugin <systemPropertyVariables>:
#
# <java.util.logging.config.file>${maven.multiModuleProjectDirectory}/src/test/resources/logging.properties</java.util.logging.config.file>
#
# Policy: raise the console threshold to WARNING (NOT OFF) so genuine WARNING/SEVERE
# still surface; only INFO/FINE chatter is suppressed. Modules whose Juneau code logs
# via JUL directly (e.g. the auth modules' JwksCache/BasicSwaggerProviderSession, and the
# REST debug pipeline's per-resource loggers) keep their real warnings visible under this threshold.
handlers=java.util.logging.ConsoleHandler
.level=INFO
java.util.logging.ConsoleHandler.level=WARNING
java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter
# Expected negative-path test: the JWKS "simulated network failure" test intentionally logs a
# WARNING from JwksCache. Silence that one logger by name (raise to SEVERE) rather than lifting
# the global threshold, so all other genuine WARNINGs still print.
org.apache.juneau.rest.server.auth.jwt.JwksCache.level=SEVERE