Merge pull request #14980 from timis1/JAVA-25805
JAVA-25805 Review log statements for projects - Week 41 - 2023
This commit is contained in:
commit
727e24feda
|
@ -1,7 +1,5 @@
|
|||
package com.baeldung.magicsquare;
|
||||
|
||||
import org.junit.platform.commons.util.StringUtils;
|
||||
|
||||
import java.util.stream.IntStream;
|
||||
|
||||
public class MagicSquare {
|
||||
|
|
|
@ -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>
|
|
@ -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>
|
|
@ -6,6 +6,8 @@
|
|||
</encoder>
|
||||
</appender>
|
||||
|
||||
<logger name="org.springframework.boot.test" level="WARN"/>
|
||||
|
||||
<root level="INFO">
|
||||
<appender-ref ref="STDOUT" />
|
||||
</root>
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue