Skip to content

Commit 863ccb1

Browse files
author
mikr
committed
Java-1462 Reduce logging - Modules core-java-io-2, spring-ejb-beans, spring-boot-security
1 parent d75b1e8 commit 863ccb1

5 files changed

Lines changed: 23 additions & 1 deletion

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<configuration scan="true" scanPeriod="15 seconds" debug="false">
3+
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
4+
<encoder>
5+
<pattern>[%d{ISO8601}]-[%thread] %-5level %logger - %msg%n</pattern>
6+
</encoder>
7+
</appender>
8+
9+
<root level="WARN">
10+
<appender-ref ref="STDOUT" />
11+
</root>
12+
</configuration>

spring-boot-modules/spring-boot-security/src/main/resources/logback.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</encoder>
88
</appender>
99

10-
<root level="INFO">
10+
<root level="WARN">
1111
<appender-ref ref="STDOUT" />
1212
</root>
1313
</configuration>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
logging.level.root=ERROR
2+
logging.level.com.baeldung.integrationtesting=ERROR

spring-ejb/ejb-beans/pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,12 @@
131131
<configuration>
132132
<!-- Fork every test because it will launch a separate AS instance -->
133133
<forkMode>always</forkMode>
134+
<systemProperties>
135+
<property>
136+
<name>java.util.logging.config.file</name>
137+
<value>src/test/resources/logging.properties</value>
138+
</property>
139+
</systemProperties>
134140
</configuration>
135141
</plugin>
136142
</plugins>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
handlers = java.util.logging.ConsoleHandler
2+
java.util.logging.ConsoleHandler.level = SEVERE

0 commit comments

Comments
 (0)