Authored by liangyi.chen@yoho.cn

日志优化

... ... @@ -23,7 +23,7 @@ public abstract class AbstractMqListener<T> implements MessageListener {
private final Logger logger = LoggerFactory.getLogger(this.getClass().getSimpleName());
private final Logger DataCheckLogger = LoggerFactory.getLogger("DATA_CHECKERROR_LOG");
private final Logger DataCheckLogger = LoggerFactory.getLogger("DATA_CHECKERROR");
/**
* 这里是多线程的,同表共享一个Map
... ...
... ... @@ -118,6 +118,12 @@
</encoder>
</appender>
<!-- 数据检测相关日志 -->
<logger name="DATA_CHECKERROR" additivity="false">
<level value="INFO"/>
<appender-ref ref="DATA_CHECKERROR_LOG"/>
</logger>
<!-- root级别 DEBUG -->
<root level="INFO">
<!-- 控制台输出 -->
... ...