Merge pull request #14980 from timis1/JAVA-25805

JAVA-25805 Review log statements for projects - Week 41 - 2023
This commit is contained in:
Loredana Crusoveanu 2023-10-19 13:10:30 +03:00 committed by GitHub
commit 727e24feda
5 changed files with 36 additions and 3 deletions

View File

@ -1,7 +1,5 @@
package com.baeldung.magicsquare;
import org.junit.platform.commons.util.StringUtils;
import java.util.stream.IntStream;
public class MagicSquare {

View File

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
</pattern>
</encoder>
</appender>
<logger name="org.springframework.test" level="WARN"/>
<logger name="org.springframework.boot.test" level="WARN"/>
<logger name="org.springframework.boot.actuate" level="WARN"/>
<root level="INFO">
<appender-ref ref="STDOUT" />
</root>
</configuration>

View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
</pattern>
</encoder>
</appender>
<logger name="org.springframework.boot.test" level="WARN"/>
<root level="INFO">
<appender-ref ref="STDOUT" />
</root>
</configuration>

View File

@ -6,6 +6,8 @@
</encoder>
</appender>
<logger name="org.springframework.boot.test" level="WARN"/>
<root level="INFO">
<appender-ref ref="STDOUT" />
</root>

View File

@ -1,6 +1,5 @@
package com.baeldung;
import com.baeldung.SampleLDAPApplication;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;