easycache-spring-boot-starter.1.1.3.source-code.logback.xml Maven / Gradle / Ivy
The newest version!
<?xml version="1.0" encoding="UTF-8"?> <!-- logback.xml的基本配置信息都包含在configuration标签中, 需要含有至少一个appender标签用于指定日志输出方式和输出格式, root标签为系统默认日志进程,通过level指定日志级别, 通过appender-ref关联前面指定顶的日志输出方式。 --> <configuration debug="false"> <statusListener class="ch.qos.logback.core.status.NopStatusListener"/> <include resource="org/springframework/boot/logging/logback/defaults.xml"/> <!-- 定义日志格式 --> <property name="CONSOLE_LOG_PATTERN" value="%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(${LOG_LEVEL_PATTERN:-%5p}) %clr(${PID:- }){magenta} %clr([%8.8t]){faint} %clr(%-30.30logger{0}){cyan} %clr(%X{requestId}){faint} %clr(%X{userId}){faint} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}"/> <include resource="org/springframework/boot/logging/logback/console-appender.xml"/> <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> <encoder> <Pattern>${CONSOLE_LOG_PATTERN}</Pattern> <charset>UTF-8</charset> </encoder> </appender> <logger name="club.kingyin" additivity="false"> <level value="debug"/> <appender-ref ref="STDOUT"/> </logger> <!-- 排除不需要打印的日志 --> <logger name="com.github.houbb" level="OFF"/> <root level="debug"> <appender-ref ref="STDOUT"/> </root> </configuration>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy