-
日志先行,日志是程序员的眼睛
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d %p [%c] - <%m>%n</pattern>
</encoder>
</appender>
<root>
<level value="debug" />
<appender-ref ref="CONSOLE" />
</root>
<logger name="org.springframework" level="info">
<appender-ref ref="CONSOLE"/>
</logger>
<logger name="org.apache.ibatis" level="info">
<appender-ref ref="CONSOLE"/>
</logger>
<logger name="java.sql" level="debug">
<appender-ref ref="CONSOLE"/>
</logger>
此实例输出show mybatis show sql。