概述
logback日志配置了输出格式,但是日志输出中为“?.?(?)”,这位调试问题造成了很大的影响。
配置
光有以下配置,还不行, 还需要添加“AsyncAppender”。
AsyncAppender
</appender>
<!-- Info -->
<appender name="info"
class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${LOG_HOME}/info/yrdAs-new-info.log</file>
<appender>true</appender>
<Encoding>UTF-8</Encoding>
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>INFO</level>
</filter>
<!-- 每小时生成日志文件 -->
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">