Browse Source

no message

master
周俊杰 2 years ago
parent
commit
a29c651000
  1. 6
      acs/hd/nladmin-system/src/main/resources/log/MagicAgvServiceImpl.xml
  2. 8
      acs/hd/nladmin-system/src/main/resources/log/QueryAgvTaskStatus.xml
  3. 2
      acs/hd/nladmin-system/src/main/resources/logback-spring.xml

6
acs/hd/nladmin-system/src/main/resources/log/MagicAgvServiceImpl.xml

@ -3,7 +3,7 @@
<springProperty scope="context" name="logPath" source="logging.file.path" defaultValue="logs"/>
<property name="LOG_HOME" value="${logPath}"/>
<!-- 按照每天生成日志文件 -->
<appender name="FILEAgvServiceImpl" class="ch.qos.logback.core.rolling.RollingFileAppender">
<appender name="FILEMagicAgvServiceImpl" class="ch.qos.logback.core.rolling.RollingFileAppender">
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<!--日志文件输出的文件名-->
<FileNamePattern>${LOG_HOME}/查询agv状态/%d{yyyy-MM-dd}.%i.log</FileNamePattern>
@ -26,7 +26,7 @@
</logger>-->
<!-- 打印sql -->
<logger name="org.nl.acs.ext.wms.service.impl.AgvServiceImpl" level="info" additivity="false">
<appender-ref ref="FILEAgvServiceImpl"/>
<logger name="package org.nl.acs.agv.server.impl.MagicAgvServiceImpl" level="info" additivity="false">
<appender-ref ref="FILEMagicAgvServiceImpl"/>
</logger>
</included>

8
acs/hd/nladmin-system/src/main/resources/log/QueryAgvTaskStatus.xml

@ -3,10 +3,10 @@
<springProperty scope="context" name="logPath" source="logging.file.path" defaultValue="logs"/>
<property name="LOG_HOME" value="${logPath}"/>
<!-- 按照每天生成日志文件 -->
<appender name="FILEACSTOWMS" class="ch.qos.logback.core.rolling.RollingFileAppender">
<appender name="FILEQueryMagicAgvTaskStatus" class="ch.qos.logback.core.rolling.RollingFileAppender">
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<!--日志文件输出的文件名-->
<FileNamePattern>${LOG_HOME}/ACS请求WMS/%d{yyyy-MM-dd}.%i.log</FileNamePattern>
<FileNamePattern>${LOG_HOME}/查询agv任务状态/%d{yyyy-MM-dd}.%i.log</FileNamePattern>
<!--日志文件保留天数-->
<maxHistory>15</maxHistory>
<!--单个日志最大容量 至少10MB才能看得出来-->
@ -26,7 +26,7 @@
</logger>-->
<!-- 打印sql -->
<logger name="org.nl.acs.agv.server.impl.AgvServiceImpl" level="info" additivity="false">
<appender-ref ref="FILEACSTOWMS"/>
<logger name="package org.nl.modules.quartz.task.QueryMagicAgvTaskStatus" level="info" additivity="false">
<appender-ref ref="FILEQueryMagicAgvTaskStatus"/>
</logger>
</included>

2
acs/hd/nladmin-system/src/main/resources/logback-spring.xml

@ -17,7 +17,7 @@ https://juejin.cn/post/6844903775631572999
<property name="LOG_HOME" value="${logPath}"/>
<!--引入默认的一些设置-->
<include resource="log/AutoCreateInst.xml"/>
<include resource="log/AgvServiceImpl.xml"/>
<include resource="log/MagicAgvServiceImpl.xml"/>
<include resource="log/WmsToAcs.xml"/>
<include resource="log/AcsToWms.xml"/>
<include resource="log/QueryAgvTaskStatus.xml"/>

Loading…
Cancel
Save