刘先源
1 month ago
16 changed files with 152 additions and 41 deletions
@ -0,0 +1,21 @@ |
|||
package org.nl.wms.sch.task_manage; |
|||
|
|||
import lombok.Getter; |
|||
import lombok.RequiredArgsConstructor; |
|||
|
|||
/** |
|||
* acs车辆类型 |
|||
*/ |
|||
@Getter |
|||
@RequiredArgsConstructor |
|||
public enum AcsCarType { |
|||
|
|||
GROUP_001("Group-001","ps20"), |
|||
GROUP_002("Group-001","ps30"), |
|||
GROUP_003("Group-001","ps10"), |
|||
GROUP_004("Group-001","ps15") |
|||
; |
|||
|
|||
private final String code; |
|||
private final String name; |
|||
} |
@ -0,0 +1,33 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<included> |
|||
<springProperty scope="context" name="logPath" source="logging.file.path" defaultValue="logs"/> |
|||
<property name="LOG_HOME" value="${logPath}"/> |
|||
<!-- 按照每天生成日志文件 --> |
|||
<appender name="FILE4" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
|||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> |
|||
<!--日志文件输出的文件名--> |
|||
<FileNamePattern>${LOG_HOME}/LmsToMes/%d{yyyy-MM-dd}.%i.log</FileNamePattern> |
|||
<!--日志文件保留天数--> |
|||
<maxHistory>15</maxHistory> |
|||
<!--单个日志最大容量 至少10MB才能看得出来--> |
|||
<maxFileSize>200MB</maxFileSize> |
|||
<!--所有日志最多占多大容量--> |
|||
<totalSizeCap>20GB</totalSizeCap> |
|||
</rollingPolicy> |
|||
<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> |
|||
<charset>${log.charset}</charset> |
|||
</encoder> |
|||
</appender> |
|||
<appender name="asyncFileAppender" class="com.yomahub.tlog.core.enhance.logback.async.AspectLogbackAsyncAppender"> |
|||
<discardingThreshold>2</discardingThreshold> |
|||
<queueSize>500</queueSize> |
|||
<appender-ref ref="FILE4"/> |
|||
</appender> |
|||
<logger name="org.nl.wms.ext.mes.service.impl.WmsToMesServiceImpl" level="info" additivity="true"> |
|||
<appender-ref ref="asyncFileAppender"/> |
|||
</logger> |
|||
|
|||
<!-- 打印sql --> |
|||
</included> |
@ -0,0 +1,35 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<included> |
|||
<springProperty scope="context" name="logPath" source="logging.file.path" defaultValue="logs"/> |
|||
<property name="LOG_HOME" value="${logPath}"/> |
|||
<!-- 按照每天生成日志文件 --> |
|||
<appender name="FILE3" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
|||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> |
|||
<!--日志文件输出的文件名--> |
|||
<FileNamePattern>${LOG_HOME}/MesToLms/%d{yyyy-MM-dd}.%i.log</FileNamePattern> |
|||
<!--日志文件保留天数--> |
|||
<maxHistory>15</maxHistory> |
|||
<!--单个日志最大容量 至少10MB才能看得出来--> |
|||
<maxFileSize>200MB</maxFileSize> |
|||
<!--所有日志最多占多大容量--> |
|||
<totalSizeCap>20GB</totalSizeCap> |
|||
</rollingPolicy> |
|||
<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> |
|||
<charset>${log.charset}</charset> |
|||
</encoder> |
|||
</appender> |
|||
|
|||
<appender name="asyncFileAppender" class="com.yomahub.tlog.core.enhance.logback.async.AspectLogbackAsyncAppender"> |
|||
<discardingThreshold>2</discardingThreshold> |
|||
<queueSize>500</queueSize> |
|||
<appender-ref ref="FILE3"/> |
|||
</appender> |
|||
|
|||
<logger name="org.nl.wms.ext.mes.service.impl.MesToWmsServiceImpl" level="info" additivity="true"> |
|||
<appender-ref ref="asyncFileAppender"/> |
|||
</logger> |
|||
|
|||
<!-- 打印sql --> |
|||
</included> |
Loading…
Reference in new issue