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"/> <springProperty scope="context" name="logPath" source="logging.file.path" defaultValue="logs"/>
<property name="LOG_HOME" value="${logPath}"/> <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"> <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<!--日志文件输出的文件名--> <!--日志文件输出的文件名-->
<FileNamePattern>${LOG_HOME}/查询agv状态/%d{yyyy-MM-dd}.%i.log</FileNamePattern> <FileNamePattern>${LOG_HOME}/查询agv状态/%d{yyyy-MM-dd}.%i.log</FileNamePattern>
@ -26,7 +26,7 @@
</logger>--> </logger>-->
<!-- 打印sql --> <!-- 打印sql -->
<logger name="org.nl.acs.ext.wms.service.impl.AgvServiceImpl" level="info" additivity="false"> <logger name="package org.nl.acs.agv.server.impl.MagicAgvServiceImpl" level="info" additivity="false">
<appender-ref ref="FILEAgvServiceImpl"/> <appender-ref ref="FILEMagicAgvServiceImpl"/>
</logger> </logger>
</included> </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"/> <springProperty scope="context" name="logPath" source="logging.file.path" defaultValue="logs"/>
<property name="LOG_HOME" value="${logPath}"/> <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"> <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> <maxHistory>15</maxHistory>
<!--单个日志最大容量 至少10MB才能看得出来--> <!--单个日志最大容量 至少10MB才能看得出来-->
@ -26,7 +26,7 @@
</logger>--> </logger>-->
<!-- 打印sql --> <!-- 打印sql -->
<logger name="org.nl.acs.agv.server.impl.AgvServiceImpl" level="info" additivity="false"> <logger name="package org.nl.modules.quartz.task.QueryMagicAgvTaskStatus" level="info" additivity="false">
<appender-ref ref="FILEACSTOWMS"/> <appender-ref ref="FILEQueryMagicAgvTaskStatus"/>
</logger> </logger>
</included> </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}"/> <property name="LOG_HOME" value="${logPath}"/>
<!--引入默认的一些设置--> <!--引入默认的一些设置-->
<include resource="log/AutoCreateInst.xml"/> <include resource="log/AutoCreateInst.xml"/>
<include resource="log/AgvServiceImpl.xml"/> <include resource="log/MagicAgvServiceImpl.xml"/>
<include resource="log/WmsToAcs.xml"/> <include resource="log/WmsToAcs.xml"/>
<include resource="log/AcsToWms.xml"/> <include resource="log/AcsToWms.xml"/>
<include resource="log/QueryAgvTaskStatus.xml"/> <include resource="log/QueryAgvTaskStatus.xml"/>

Loading…
Cancel
Save