18188916393
2 years ago
15 changed files with 100 additions and 549 deletions
@ -1 +0,0 @@ |
|||||
,DESKTOP-BT6HP4E/zhang,DESKTOP-BT6HP4E,29.08.2022 16:51,file:///C:/Users/zhang/AppData/Roaming/LibreOffice/4; |
|
Binary file not shown.
@ -1,164 +0,0 @@ |
|||||
server: |
|
||||
port: 8010 |
|
||||
#配置数据源 |
|
||||
spring: |
|
||||
profiles: |
|
||||
test |
|
||||
datasource: |
|
||||
druid: |
|
||||
db-type: com.alibaba.druid.pool.DruidDataSource |
|
||||
driverClassName: net.sf.log4jdbc.sql.jdbcapi.DriverSpy |
|
||||
url: jdbc:log4jdbc:mysql://${DB_HOST:192.168.81.252}:${DB_PORT:3306}/${DB_NAME:llsh_wms}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true |
|
||||
username: ${DB_USER:root} |
|
||||
#password: ${DB_PWD:P@ssw0rd} |
|
||||
password: ${DB_PWD:Root.123456} |
|
||||
# 初始连接数 |
|
||||
initial-size: 5 |
|
||||
# 最小连接数 |
|
||||
min-idle: 15 |
|
||||
# 最大连接数 |
|
||||
max-active: 30 |
|
||||
# 是否自动回收超时连接 |
|
||||
remove-abandoned: true |
|
||||
# 超时时间(以秒数为单位) |
|
||||
remove-abandoned-timeout: 180 |
|
||||
# 获取连接超时时间 |
|
||||
max-wait: 3000 |
|
||||
# 连接有效性检测时间 |
|
||||
time-between-eviction-runs-millis: 60000 |
|
||||
# 连接在池中最小生存的时间 |
|
||||
min-evictable-idle-time-millis: 300000 |
|
||||
# 连接在池中最大生存的时间 |
|
||||
max-evictable-idle-time-millis: 900000 |
|
||||
# 指明连接是否被空闲连接回收器(如果有)进行检验.如果检测失败,则连接将被从池中去除 |
|
||||
test-while-idle: true |
|
||||
# 指明是否在从池中取出连接前进行检验,如果检验失败, 则从池中去除连接并尝试取出另一个 |
|
||||
test-on-borrow: true |
|
||||
# 是否在归还到池中前进行检验 |
|
||||
test-on-return: false |
|
||||
# 检测连接是否有效 |
|
||||
validation-query: select 1 |
|
||||
# 配置监控统计 |
|
||||
webStatFilter: |
|
||||
enabled: true |
|
||||
stat-view-servlet: |
|
||||
enabled: true |
|
||||
url-pattern: /druid/* |
|
||||
reset-enable: false |
|
||||
filter: |
|
||||
stat: |
|
||||
enabled: true |
|
||||
# 记录慢SQL |
|
||||
log-slow-sql: true |
|
||||
slow-sql-millis: 1000 |
|
||||
merge-sql: true |
|
||||
wall: |
|
||||
config: |
|
||||
multi-statement-alagvslow: true |
|
||||
data: |
|
||||
mongodb: |
|
||||
host: 127.0.0.1 |
|
||||
port: 27017 |
|
||||
database: logdb |
|
||||
redis: |
|
||||
#数据库索引 |
|
||||
database: ${REDIS_DB:8} |
|
||||
host: ${REDIS_HOST:47.111.78.178} |
|
||||
port: ${REDIS_PORT:6379} |
|
||||
password: ${REDIS_PWD:} |
|
||||
#连接超时时间 |
|
||||
timeout: 5000 |
|
||||
# 登录相关配置 |
|
||||
login: |
|
||||
# 登录缓存 |
|
||||
cache-enable: true |
|
||||
# 是否限制单用户登录 |
|
||||
single-login: false |
|
||||
# 验证码 |
|
||||
login-code: |
|
||||
# 验证码类型配置 查看 LoginProperties 类 |
|
||||
code-type: arithmetic |
|
||||
# 登录图形验证码有效时间/分钟 |
|
||||
expiration: 2 |
|
||||
# 验证码高度 |
|
||||
width: 111 |
|
||||
# 验证码宽度 |
|
||||
heigth: 36 |
|
||||
# 内容长度 |
|
||||
length: 2 |
|
||||
# 字体名称,为空则使用默认字体 |
|
||||
font-name: |
|
||||
# 字体大小 |
|
||||
font-size: 25 |
|
||||
|
|
||||
#jwt |
|
||||
jwt: |
|
||||
header: Authorization |
|
||||
# 令牌前缀 |
|
||||
token-start-with: Bearer |
|
||||
# 必须使用最少88位的Base64对该令牌进行编码 |
|
||||
base64-secret: ZmQ0ZGI5NjQ0MDQwY2I4MjMxY2Y3ZmI3MjdhN2ZmMjNhODViOTg1ZGE0NTBjMGM4NDA5NzYxMjdjOWMwYWRmZTBlZjlhNGY3ZTg4Y2U3YTE1ODVkZDU5Y2Y3OGYwZWE1NzUzNWQ2YjFjZDc0NGMxZWU2MmQ3MjY1NzJmNTE0MzI= |
|
||||
# 令牌过期时间 此处单位/毫秒 ,默认4小时,可在此网站生成 https://www.convertworld.com/zh-hans/time/milliseconds.html |
|
||||
token-validity-in-seconds: 14400000 |
|
||||
# 在线用户key |
|
||||
online-key: online-token- |
|
||||
# 验证码 |
|
||||
code-key: code-key- |
|
||||
# token 续期检查时间范围(默认30分钟,单位毫秒),在token即将过期的一段时间内用户操作了,则给用户的token续期 |
|
||||
detect: 1800000 |
|
||||
# 续期时间范围,默认1小时,单位毫秒 |
|
||||
renew: 3600000 |
|
||||
|
|
||||
#是否允许生成代码,生产环境设置为false |
|
||||
generator: |
|
||||
enabled: true |
|
||||
|
|
||||
#是否开启 swagger-ui |
|
||||
swagger: |
|
||||
enabled: true |
|
||||
|
|
||||
# IP 本地解析 |
|
||||
ip: |
|
||||
local-parsing: true |
|
||||
|
|
||||
# 文件存储路径 |
|
||||
file: |
|
||||
mac: |
|
||||
path: ~/file/ |
|
||||
avatar: ~/avatar/ |
|
||||
linux: |
|
||||
path: /home/eladmin/file/ |
|
||||
avatar: /home/eladmin/avatar/ |
|
||||
windows: |
|
||||
path: C:\eladmin\file\ |
|
||||
avatar: C:\eladmin\avatar\ |
|
||||
# 文件大小 /M |
|
||||
maxSize: 100 |
|
||||
avatarMaxSize: 5 |
|
||||
|
|
||||
|
|
||||
|
|
||||
jetcache: |
|
||||
defaultCacheType: LOCAL |
|
||||
statIntervalMinutes: 15 |
|
||||
areaInCacheName: false |
|
||||
hiddenPackages: com.yb |
|
||||
local: |
|
||||
default: |
|
||||
type: caffeine |
|
||||
limit: 100 |
|
||||
keyConvertor: fastjson |
|
||||
expireAfterWriteInMillis: 60000 |
|
||||
remote: |
|
||||
default: |
|
||||
type: redis.lettuce |
|
||||
keyConvertor: fastjson |
|
||||
valueEncoder: kryo |
|
||||
valueDecoder: kryo |
|
||||
poolConfig: |
|
||||
minIdle: 5 |
|
||||
maxIdle: 200 |
|
||||
maxTotal: 1000 |
|
||||
uri: |
|
||||
- redis://47.111.78.178:6379 |
|
||||
|
|
@ -1,9 +0,0 @@ |
|||||
//项目协议类型说明 |
|
||||
0:标准协议,荣力营口,杰牌,金力永磁 |
|
||||
1:新锐 |
|
||||
2:贤益 |
|
||||
3:奇达 |
|
||||
4:广钞厂 |
|
||||
5:纽迪希亚 |
|
||||
6:太钢 |
|
||||
7:洁美 |
|
@ -1,32 +0,0 @@ |
|||||
<?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="FILE7" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> |
|
||||
<!--日志文件输出的文件名--> |
|
||||
<FileNamePattern>${LOG_HOME}/ACS请求ERP/%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> |
|
||||
</encoder> |
|
||||
|
|
||||
</appender> |
|
||||
|
|
||||
<!-- <logger name="org.nl.start.Init" level="info" additivity="false"> |
|
||||
<appender-ref ref="FILE3"/> |
|
||||
</logger>--> |
|
||||
|
|
||||
<!-- 打印sql --> |
|
||||
<logger name=" org.nl.acs.ext.erp.service.impl.AcsToErpServiceImpl" level="info" additivity="false"> |
|
||||
<appender-ref ref="FILE7"/> |
|
||||
</logger> |
|
||||
</included> |
|
@ -1,32 +0,0 @@ |
|||||
<?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="FILE8" 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> |
|
||||
<!--日志文件保留天数--> |
|
||||
<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> |
|
||||
</encoder> |
|
||||
|
|
||||
</appender> |
|
||||
|
|
||||
<!-- <logger name="org.nl.start.Init" level="info" additivity="false"> |
|
||||
<appender-ref ref="FILE3"/> |
|
||||
</logger>--> |
|
||||
|
|
||||
<!-- 打印sql --> |
|
||||
<logger name="org.nl.acs.ext.wms.service.impl.AcsToWmsServiceImpl" level="info" additivity="false"> |
|
||||
<appender-ref ref="FILE8"/> |
|
||||
</logger> |
|
||||
</included> |
|
@ -1,32 +0,0 @@ |
|||||
<?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="FILE5" 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> |
|
||||
<!--日志文件保留天数--> |
|
||||
<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> |
|
||||
</encoder> |
|
||||
|
|
||||
</appender> |
|
||||
|
|
||||
<!-- <logger name="org.nl.start.Init" level="info" additivity="false"> |
|
||||
<appender-ref ref="FILE3"/> |
|
||||
</logger>--> |
|
||||
|
|
||||
<!-- 打印sql --> |
|
||||
<logger name="org.nl.acs.agv.server.impl.AgvServiceImpl" level="info" additivity="false"> |
|
||||
<appender-ref ref="FILE5"/> |
|
||||
</logger> |
|
||||
</included> |
|
@ -1,32 +0,0 @@ |
|||||
<?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="FILE6" 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> |
|
||||
<!--日志文件保留天数--> |
|
||||
<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> |
|
||||
</encoder> |
|
||||
|
|
||||
</appender> |
|
||||
|
|
||||
<!-- <logger name="org.nl.start.Init" level="info" additivity="false"> |
|
||||
<appender-ref ref="FILE3"/> |
|
||||
</logger>--> |
|
||||
|
|
||||
<!-- 打印sql --> |
|
||||
<logger name="org.nl.acs.device_driver.magic_agv.AgvackServlet" level="info" additivity="false"> |
|
||||
<appender-ref ref="FILE6"/> |
|
||||
</logger> |
|
||||
</included> |
|
@ -1,31 +0,0 @@ |
|||||
<?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}/自动创建指令/%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> |
|
||||
</encoder> |
|
||||
</appender> |
|
||||
|
|
||||
<!-- <logger name="org.nl.start.Init" level="info" additivity="false"> |
|
||||
<appender-ref ref="FILE3"/> |
|
||||
</logger>--> |
|
||||
|
|
||||
<!-- 打印sql --> |
|
||||
<logger name="org.nl.modules.quartz.task.AutoCreateInst" level="info" additivity="false"> |
|
||||
<appender-ref ref="FILE3"/> |
|
||||
</logger> |
|
||||
</included> |
|
@ -1,32 +0,0 @@ |
|||||
<?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="FILE10" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> |
|
||||
<!--日志文件输出的文件名--> |
|
||||
<FileNamePattern>${LOG_HOME}/DNC/%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> |
|
||||
</encoder> |
|
||||
|
|
||||
</appender> |
|
||||
|
|
||||
<!-- <logger name="org.nl.start.Init" level="info" additivity="false"> |
|
||||
<appender-ref ref="FILE3"/> |
|
||||
</logger>--> |
|
||||
|
|
||||
<!-- 打印sql --> |
|
||||
<logger name="org.nl.start.auto.run.NDCSocketConnectionAutoRun" level="info" additivity="false"> |
|
||||
<appender-ref ref="FILE10"/> |
|
||||
</logger> |
|
||||
</included> |
|
@ -1,32 +0,0 @@ |
|||||
<?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}/查询AGV指令状态/%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> |
|
||||
</encoder> |
|
||||
|
|
||||
</appender> |
|
||||
|
|
||||
<!-- <logger name="org.nl.start.Init" level="info" additivity="false"> |
|
||||
<appender-ref ref="FILE3"/> |
|
||||
</logger>--> |
|
||||
|
|
||||
<!-- 打印sql --> |
|
||||
<logger name="org.nl.modules.quartz.task.QueryMagicAgvTaskStatus" level="info" additivity="false"> |
|
||||
<appender-ref ref="FILE4"/> |
|
||||
</logger> |
|
||||
</included> |
|
@ -1,32 +0,0 @@ |
|||||
<?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="FILE10" 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> |
|
||||
<!--日志文件保留天数--> |
|
||||
<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> |
|
||||
</encoder> |
|
||||
|
|
||||
</appender> |
|
||||
|
|
||||
<!-- <logger name="org.nl.start.Init" level="info" additivity="false"> |
|
||||
<appender-ref ref="FILE3"/> |
|
||||
</logger>--> |
|
||||
|
|
||||
<!-- 打印sql --> |
|
||||
<logger name="org.nl.modules.quartz.task.QueryXZAgvTaskStatus" level="info" additivity="false"> |
|
||||
<appender-ref ref="FILE10"/> |
|
||||
</logger> |
|
||||
</included> |
|
@ -1,32 +0,0 @@ |
|||||
<?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="FILE9" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> |
|
||||
<!--日志文件输出的文件名--> |
|
||||
<FileNamePattern>${LOG_HOME}/WMS下发ACS/%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> |
|
||||
</encoder> |
|
||||
|
|
||||
</appender> |
|
||||
|
|
||||
<!-- <logger name="org.nl.start.Init" level="info" additivity="false"> |
|
||||
<appender-ref ref="FILE3"/> |
|
||||
</logger>--> |
|
||||
|
|
||||
<!-- 打印sql --> |
|
||||
<logger name="org.nl.acs.ext.wms.service.impl.WmsToAcsServiceImpl" level="info" additivity="false"> |
|
||||
<appender-ref ref="FILE9"/> |
|
||||
</logger> |
|
||||
</included> |
|
Loading…
Reference in new issue