Add SLF4J, Logback configuration file to configure the log levels for Apache Geode and Spring Framework in Integration Tests.
This commit is contained in:
24
spring-geode/src/test/resources/logback.xml
Normal file
24
spring-geode/src/test/resources/logback.xml
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<configuration debug="false">
|
||||||
|
|
||||||
|
<statusListener class="ch.qos.logback.core.status.NopStatusListener"/>
|
||||||
|
|
||||||
|
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
|
||||||
|
<encoder>
|
||||||
|
<pattern>%d %5p %40.40c:%4L - %m%n</pattern>
|
||||||
|
</encoder>
|
||||||
|
</appender>
|
||||||
|
|
||||||
|
<appender name="testAppender" class="org.springframework.data.gemfire.tests.logging.slf4j.logback.TestAppender"/>
|
||||||
|
|
||||||
|
<logger name="ch.qos.logback" level="${logback.log.level:-ERROR}"/>
|
||||||
|
|
||||||
|
<logger name="org.apache" level="${logback.log.level:-ERROR}"/>
|
||||||
|
|
||||||
|
<logger name="org.springframework" level="${logback.log.level:-ERROR}"/>
|
||||||
|
|
||||||
|
<root level="${logback.log.level:-ERROR}">
|
||||||
|
<appender-ref ref="console"/>
|
||||||
|
</root>
|
||||||
|
|
||||||
|
</configuration>
|
||||||
Reference in New Issue
Block a user