|
|
@ -12,17 +12,15 @@ https://juejin.cn/post/6844903775631572999 |
|
|
|
<contextName>nlAdmin</contextName> |
|
|
|
<property name="log.charset" value="utf-8"/> |
|
|
|
<property name="log.pattern" |
|
|
|
value="%black(%contextName-) %red(%d{yyyy-MM-dd HH:mm:ss.SSS}) %green([%thread]) %highlight(%-5level) %boldMagenta(%logger{36}) - %gray(%msg%n)"/> |
|
|
|
value="%cyan(%contextName-) %red(%d{yyyy-MM-dd HH:mm:ss.SSS}) %green([%thread]) %highlight(%-5level) %boldMagenta(%logger{36}) - %cyan(%msg%n)"/> |
|
|
|
<springProperty scope="context" name="logPath" source="logging.file.path" defaultValue="logs"/> |
|
|
|
<property name="LOG_HOME" value="${logPath}"/> |
|
|
|
<!--引入默认的一些设置--> |
|
|
|
<!--<include resource="log/XrToMes.xml"/> |
|
|
|
<include resource="log/MesToErp.xml"/>--> |
|
|
|
|
|
|
|
<include resource="log/AutoCreateInst.xml"/> |
|
|
|
<include resource="log/AcsToWms.xml"/> |
|
|
|
<include resource="log/WmsToAcs.xml"/> |
|
|
|
<include resource="log/OneNDCSocketConnectionAutoRun.xml"/> |
|
|
|
<!-- <include resource="log/Lucene.xml"/>--> |
|
|
|
<include resource="log/AgvNdcOneDeviceDriver.xml"/> |
|
|
|
<include resource="log/NDCAgvServiceImpl.xml"/> |
|
|
|
<include resource="log/LnshRGVDeviceDriver.xml"/> |
|
|
@ -30,7 +28,6 @@ https://juejin.cn/post/6844903775631572999 |
|
|
|
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender"> |
|
|
|
<withJansi>true</withJansi> |
|
|
|
<encoder class="com.yomahub.tlog.core.enhance.logback.AspectLogbackEncoder"> |
|
|
|
<!-- <encoder>--> |
|
|
|
<pattern>${log.pattern}</pattern> |
|
|
|
</encoder> |
|
|
|
</appender> |
|
|
@ -50,8 +47,7 @@ https://juejin.cn/post/6844903775631572999 |
|
|
|
<totalSizeCap>20GB</totalSizeCap> |
|
|
|
</rollingPolicy> |
|
|
|
|
|
|
|
<encoder class="com.yomahub.tlog.core.enhance.logback.AspectLogbackEncoder"> |
|
|
|
<!-- <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">--> |
|
|
|
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"> |
|
|
|
<!--格式化输出:%d表示日期,%thread表示线程名,%-5level:级别从左显示5个字符宽度%msg:日志消息,%n是换行符--> |
|
|
|
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern> |
|
|
|
</encoder> |
|
|
@ -59,7 +55,6 @@ https://juejin.cn/post/6844903775631572999 |
|
|
|
</appender> |
|
|
|
|
|
|
|
<!--异步到文件--> |
|
|
|
<!-- <appender name="asyncFileAppender" class="ch.qos.logback.classic.AsyncAppender">--> |
|
|
|
<appender name="asyncFileAppender" class="com.yomahub.tlog.core.enhance.logback.async.AspectLogbackAsyncAppender"> |
|
|
|
<discardingThreshold>0</discardingThreshold> |
|
|
|
<queueSize>500</queueSize> |
|
|
|