Java-1462 Reduce logging - Modules core-java-io-2, spring-ejb-beans, spring-boot-security

This commit is contained in:
mikr 2020-08-30 14:35:18 +02:00
parent 9541b56c5e
commit d7e25cb6e9
5 changed files with 23 additions and 1 deletions

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true" scanPeriod="15 seconds" debug="false">
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>[%d{ISO8601}]-[%thread] %-5level %logger - %msg%n</pattern>
</encoder>
</appender>
<root level="WARN">
<appender-ref ref="STDOUT" />
</root>
</configuration>

View File

@ -7,7 +7,7 @@
</encoder>
</appender>
<root level="INFO">
<root level="WARN">
<appender-ref ref="STDOUT" />
</root>
</configuration>

View File

@ -0,0 +1,2 @@
logging.level.root=ERROR
logging.level.com.baeldung.integrationtesting=ERROR

View File

@ -131,6 +131,12 @@
<configuration>
<!-- Fork every test because it will launch a separate AS instance -->
<forkMode>always</forkMode>
<systemProperties>
<property>
<name>java.util.logging.config.file</name>
<value>src/test/resources/logging.properties</value>
</property>
</systemProperties>
</configuration>
</plugin>
</plugins>

View File

@ -0,0 +1,2 @@
handlers = java.util.logging.ConsoleHandler
java.util.logging.ConsoleHandler.level = SEVERE