mybatis 日志记录
创建logback.xml
<?xml version="1.0" encoding="UTF-8" ?> <!--该规则是 logback 的核心。级别排序为: TRACE < DEBUG < INFO < WARN < ERROR--> <configuration> <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> <encoder> <pattern>%-4relative [%thread] %-5level %logger{35} - %msg %n</pattern> </encoder> </appender> <root level="DEBUG"> <appender-ref ref="STDOUT" /> </root> </configuration>
详细:https://www.cnblogs.com/warking/p/5710303.html