asic-detail-example.1.1.4.source-code.logback-spring.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of basic-detail-example Show documentation
Show all versions of basic-detail-example Show documentation
使用用户管理脚手架(ums) core 模块基本功能详细的配置: 含anonymous/session简单配置/rememberMe/csrf/登录路由/签到,
不包含session详细配置/验证码/手机登录/权限.
The newest version!
<configuration> <include resource="org/springframework/boot/logging/logback/defaults.xml"/> <include resource="org/springframework/boot/logging/logback/console-appender.xml" /> <!-- 控制台 --> <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> <!-- 日志格式 --> <encoder> <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level %logger Line:%-3L - %msg%n</pattern> <charset>utf-8</charset> </encoder> <!--此日志appender是为开发使用,只配置最底级别,控制台输出的日志级别是大于或等于此级别的日志信息--> <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> <!-- 只有这个日志权限才能看,sql语句 --> <level>DEBUG</level> </filter> </appender> <root level="INFO"> <appender-ref ref="CONSOLE" /> </root> <logger name="top.dcenter" level="DEBUG" additivity="false"> <appender-ref ref="STDOUT"/> </logger> </configuration>