issue #23 使用logback作为单元测试的log工具,并配置默认的log

This commit is contained in:
Daniel Qian
2015-01-22 13:27:47 +08:00
parent 6368ca6816
commit 3ff9d260f2
6 changed files with 56 additions and 7 deletions

View File

@@ -0,0 +1,16 @@
<configuration>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<!-- encoders are assigned the type
ch.qos.logback.classic.encoder.PatternLayoutEncoder by default -->
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>
<root level="info">
<appender-ref ref="STDOUT" />
</root>
<logger name="me.chanjar.weixin.common" level="debug" />
</configuration>