From 6b152bd561f64f01a5bb0a8cc9784dfa601a72d1 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期四, 27 六月 2024 11:53:40 +0800
Subject: [PATCH] 提交一把
---
/dev/null | 40 ----
server/platform/src/main/resources/logback-spring.xml | 61 ++++++
server/company/src/main/resources/logback-spring.xml | 61 ++++++
company/src/components/enterprise/insuranceRecords.vue | 8
company/src/components/business/OperaSettleClaimsWindow.vue | 326 ++++++++++++++++----------------
server/shop/src/main/resources/logback-spring.xml | 61 ++++++
company/.env.development | 4
7 files changed, 358 insertions(+), 203 deletions(-)
diff --git a/company/.env.development b/company/.env.development
index a7e4e84..495cc66 100644
--- a/company/.env.development
+++ b/company/.env.development
@@ -10,5 +10,5 @@
# VUE_APP_API = 'https://dmtest.ahapp.net/yyb_admin_api/'
#VUE_APP_API = 'http://localhost:10030/'
-#VUE_APP_API = 'http://192.168.0.135:10030/'
-VUE_APP_API = 'https://www.yyb.red/yyb_admin_api/'
+VUE_APP_API = 'http://192.168.0.135:10030/'
+#VUE_APP_API = 'https://www.yyb.red/yyb_admin_api/'
diff --git a/company/src/components/business/OperaSettleClaimsWindow.vue b/company/src/components/business/OperaSettleClaimsWindow.vue
index b887d4e..e35dfb2 100644
--- a/company/src/components/business/OperaSettleClaimsWindow.vue
+++ b/company/src/components/business/OperaSettleClaimsWindow.vue
@@ -385,7 +385,7 @@
<div class="desc_times">
<el-timeline :reverse="reverse">
<el-timeline-item
- v-for="(activity, index) in model.settleClaimsLogList"
+ v-for="(activity, index) in activeLogList"
:key="index"
:timestamp="activity.timestamp">
<div style="display: flex; flex-direction: column;" v-if="activity.objType==3">
@@ -436,167 +436,171 @@
<script>
- import UploadFileCommon from '@/components/common/UploadFileCommon'
- import BaseOpera from '@/components/base/BaseOpera'
- import GlobalWindow from '@/components/common/GlobalWindow'
- import OperaSettleClaimsCheckWindow from '@/components/business/OperaSettleClaimsCheckWindow'
- import onlineReporting from '@/components/enterprise/onlineReporting'
- import supplementaryExplanation from '@/components/enterprise/supplementaryExplanation'
- import OperaInsuranceApplyDetails from '@/components/business/OperaInsuranceApplyWindow'
- import upload from '@/components/common/upload'
- import {confirmFile, findById,exportFiles,claimsUploadFile,delFile} from '@/api/business/settleClaims'
- import { mapState } from 'vuex'
- export default {
- name: 'OperaSettleClaimsWindow',
- extends: BaseOpera,
- components: { GlobalWindow, OperaSettleClaimsCheckWindow, OperaInsuranceApplyDetails, UploadFileCommon, onlineReporting, supplementaryExplanation, upload },
- data () {
- return {
- loading: false,
- doneFileDate: null,
- remarkLogList: [],
- list: [],
- model: {},
- activeName: 'first',
- reverse: false
- }
- },
- computed: {
- ...mapState(['userInfo'])
- },
- created () {
- this.config({
- api: '/business/settleClaims',
- 'field.id': 'id'
- })
- },
- methods: {
- open(title,target){
- this.model = {}
- this.model = target
- this.title = title
- this.visible = true
- this.doneFileDate = null
- this.remarkLogList = []
- this.getDetail()
- },
- // 鍒ゆ柇涓や釜鏃堕棿涔嬮棿鐩稿樊鏄惁
- contrast24(time1, time2) {
- console.log(time1)
- console.log(time2)
- if (time1 && time2) {
- let a = new Date(time1)
- let b = new Date(time2)
- let timeDiff = Math.abs(a.getTime() - b.getTime());
- console.log(Math.ceil(timeDiff / (3600 * 1000)))
- return Math.ceil(timeDiff / (3600 * 1000)) <= 24;
- } else {
- return false
- }
- },
- contrast(time1, time2) {
- if (time1 && time2) {
- let a = new Date(time1).getTime()
- let b = new Date(time2).getTime()
- return a > b
- } else {
- return false
- }
- },
- edit() {
- let obj = JSON.parse(JSON.stringify(this.model))
- obj.areaId = obj.areaId.split(',').map(item => Number(item))
- this.$refs.onlineReporting.open('淇敼淇℃伅', obj)
- },
- openBaoxiandan(){
- window.open(this.model.baoxiandanFile.fileurlFull);
- },
- delFile(id){
- this.$dialog.messageConfirm('纭鍒犻櫎璇ラ檮浠跺悧锛屼竴鏃﹀垹闄ゆ棤娉曟挙鍥烇紵')
- .then(() => {
- delFile(this.model.id, id).then(response => {
- this.getDetail()
- }).catch(err => {
- this.$tip.apiFailed(err)
- })
- })
- },
- getDetail(){
- findById( this.model.id)
- .then(res => {
- this.model = res
- this.remarkLogList = []
- var logList = this.model.settleClaimsLogList
- if (logList) {
- logList.forEach(item => {
- if (item.objType == 2) {
- this.doneFileDate = item.createDate
- }
- if (item.objType==7) {
- this.remarkLogList.push(item)
- }
- })
- }
- }).catch(err => {
-
- })
- },
- handleClick(tab) {
- this.activeName = tab.name
- },
- callback(){
- this.getDetail()
- this.$emit('success')
- },
- claimsUploadFile(e, objType) {
- claimsUploadFile({
- id: this.model.id,
- objType,
- fileUrl: e.imgaddr,
- fileName: e.originname,
- fileType: e.type
- }).then(response => {
- this.getDetail()
- }).catch(err => {
- this.$tip.apiFailed(err)
- }).finally(() => {
- this.loading = false
- })
- },
- submit(type) {
- var that = this
- if (type == 0) {
- this.$dialog.messageConfirm('鐞嗚禂鏉愭枡鏀堕泦瀹屾垚锛岃鍙婃椂鎻愪氦淇濋櫓鍏徃锛�')
- .then(() => {
- // this.isWorking = true
- confirmFile({id:that.model.id})
- .then(response => {
- that.getDetail()
- }).catch(err => {
- this.$tip.apiFailed(err)
- })
- })
- }else if(type == 1){
- //璧勬枡涓嬭浇
- this.$dialog.exportConfirm('纭杩涜璧勬枡涓嬭浇鍚楋紵')
- .then(() => {
- this.isWorking = true
- exportFiles({ id: that.model.id })
- .then(response => {
- this.download(response)
- }).catch(err => {
- console.log(err)
- this.$message.error("涓嬭浇璧勬枡澶辫触锛岃纭璧勬枡鏁版嵁涓嶄负绌�")
- }).finally(() => {
- this.isWorking = false
- })
- })
- .catch(() => {
- })
- }
- }
- }
+import UploadFileCommon from '@/components/common/UploadFileCommon'
+import BaseOpera from '@/components/base/BaseOpera'
+import GlobalWindow from '@/components/common/GlobalWindow'
+import OperaSettleClaimsCheckWindow from '@/components/business/OperaSettleClaimsCheckWindow'
+import onlineReporting from '@/components/enterprise/onlineReporting'
+import supplementaryExplanation from '@/components/enterprise/supplementaryExplanation'
+import OperaInsuranceApplyDetails from '@/components/business/OperaInsuranceApplyWindow'
+import upload from '@/components/common/upload'
+import { confirmFile, findById, exportFiles, claimsUploadFile, delFile } from '@/api/business/settleClaims'
+import { mapState } from 'vuex'
+export default {
+ name: 'OperaSettleClaimsWindow',
+ extends: BaseOpera,
+ components: { GlobalWindow, OperaSettleClaimsCheckWindow, OperaInsuranceApplyDetails, UploadFileCommon, onlineReporting, supplementaryExplanation, upload },
+ data () {
+ return {
+ loading: false,
+ doneFileDate: null,
+ remarkLogList: [],
+ activeLogList:[],
+ list: [],
+ model: {},
+ activeName: 'first',
+ reverse: false
}
+ },
+ computed: {
+ ...mapState(['userInfo'])
+ },
+ created () {
+ this.config({
+ api: '/business/settleClaims',
+ 'field.id': 'id'
+ })
+ },
+ methods: {
+ open (title, target) {
+ this.model = {}
+ this.model = target
+ this.title = title
+ this.visible = true
+ this.doneFileDate = null
+ this.remarkLogList = []
+ this.activeLogList = []
+ this.getDetail()
+ },
+ // 鍒ゆ柇涓や釜鏃堕棿涔嬮棿鐩稿樊鏄惁
+ contrast24 (time1, time2) {
+ console.log(time1)
+ console.log(time2)
+ if (time1 && time2) {
+ const a = new Date(time1)
+ const b = new Date(time2)
+ const timeDiff = Math.abs(a.getTime() - b.getTime())
+ console.log(Math.ceil(timeDiff / (3600 * 1000)))
+ return Math.ceil(timeDiff / (3600 * 1000)) <= 24
+ } else {
+ return false
+ }
+ },
+ contrast (time1, time2) {
+ if (time1 && time2) {
+ const a = new Date(time1).getTime()
+ const b = new Date(time2).getTime()
+ return a > b
+ } else {
+ return false
+ }
+ },
+ edit () {
+ const obj = JSON.parse(JSON.stringify(this.model))
+ obj.areaId = obj.areaId.split(',').map(item => Number(item))
+ this.$refs.onlineReporting.open('淇敼淇℃伅', obj)
+ },
+ openBaoxiandan () {
+ window.open(this.model.baoxiandanFile.fileurlFull)
+ },
+ delFile (id) {
+ this.$dialog.messageConfirm('纭鍒犻櫎璇ラ檮浠跺悧锛屼竴鏃﹀垹闄ゆ棤娉曟挙鍥烇紵')
+ .then(() => {
+ delFile(this.model.id, id).then(response => {
+ this.getDetail()
+ }).catch(err => {
+ this.$tip.apiFailed(err)
+ })
+ })
+ },
+ getDetail () {
+ findById(this.model.id)
+ .then(res => {
+ this.model = res
+ this.remarkLogList = []
+ this.activeLogList =[]
+ var logList = this.model.settleClaimsLogList
+ if (logList) {
+ logList.forEach(item => {
+ if (item.objType == 2) {
+ this.doneFileDate = item.createDate
+ }
+ if (item.objType == 7) {
+ this.remarkLogList.push(item)
+ } else {
+ this.activeLogList.push(item)
+ }
+ })
+ }
+ }).catch(err => {
+ })
+ },
+ handleClick (tab) {
+ this.activeName = tab.name
+ },
+ callback () {
+ this.getDetail()
+ this.$emit('success')
+ },
+ claimsUploadFile (e, objType) {
+ claimsUploadFile({
+ id: this.model.id,
+ objType,
+ fileUrl: e.imgaddr,
+ fileName: e.originname,
+ fileType: e.type
+ }).then(response => {
+ this.getDetail()
+ }).catch(err => {
+ this.$tip.apiFailed(err)
+ }).finally(() => {
+ this.loading = false
+ })
+ },
+ submit (type) {
+ var that = this
+ if (type == 0) {
+ this.$dialog.messageConfirm('鐞嗚禂鏉愭枡鏀堕泦瀹屾垚锛岃鍙婃椂鎻愪氦淇濋櫓鍏徃锛�')
+ .then(() => {
+ // this.isWorking = true
+ confirmFile({ id: that.model.id })
+ .then(response => {
+ that.getDetail()
+ }).catch(err => {
+ this.$tip.apiFailed(err)
+ })
+ })
+ } else if (type == 1) {
+ // 璧勬枡涓嬭浇
+ this.$dialog.exportConfirm('纭杩涜璧勬枡涓嬭浇鍚楋紵')
+ .then(() => {
+ this.isWorking = true
+ exportFiles({ id: that.model.id })
+ .then(response => {
+ this.download(response)
+ }).catch(err => {
+ console.log(err)
+ this.$message.error('涓嬭浇璧勬枡澶辫触锛岃纭璧勬枡鏁版嵁涓嶄负绌�')
+ }).finally(() => {
+ this.isWorking = false
+ })
+ })
+ .catch(() => {
+ })
+ }
+ }
+ }
+}
</script>
<style>
.v-modal {
diff --git a/company/src/components/enterprise/insuranceRecords.vue b/company/src/components/enterprise/insuranceRecords.vue
index c5ec098..e8b1928 100644
--- a/company/src/components/enterprise/insuranceRecords.vue
+++ b/company/src/components/enterprise/insuranceRecords.vue
@@ -44,6 +44,14 @@
label="鎵�灞炲伐绉�">
</el-table-column>
<el-table-column
+ prop="status"
+ label="鐘舵��">
+ <template scope="{row}">
+ <span v-if="row.isValid == 1" style="color: red">宸插け鏁�</span>
+ <span v-else style="color: green">鏈夋晥</span>
+ </template>
+ </el-table-column>
+ <el-table-column
prop="startTime"
label="淇濋櫓鐢熸晥璧锋湡">
</el-table-column>
diff --git a/server/company/src/main/resources/logback-spring.xml b/server/company/src/main/resources/logback-spring.xml
new file mode 100644
index 0000000..b23a11e
--- /dev/null
+++ b/server/company/src/main/resources/logback-spring.xml
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+ <appender name="consoleLog" class="ch.qos.logback.core.ConsoleAppender">
+ <layout class="ch.qos.logback.classic.PatternLayout">
+ <pattern>%highlight(%date{yyyy-MM-dd HH:mm:ss}) | %highlight(%-5level) | %highlight(%thread) | %highlight(%logger) | %msg%n</pattern>
+ </layout>
+ </appender>
+ <property name="log.path" value="log/web"></property>
+ <property name="log.fileSize" value="100MB"></property>
+ <property name="log.historyDays" value="7"></property>
+
+ <appender name="fileInfoLog" class="ch.qos.logback.core.rolling.RollingFileAppender">
+ <filter class="ch.qos.logback.classic.filter.LevelFilter">
+ <level>ERROR</level>
+ <!--鍖归厤灏辫垗鍘�-->
+ <onMatch>DENY</onMatch>
+ <onMismatch>ACCEPT</onMismatch>
+ </filter>
+ <encoder>
+ <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern>
+ </encoder>
+ <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
+ <!--璺緞-->
+ <fileNamePattern>${log.path}/info.%d.%i.log</fileNamePattern>
+ <maxFileSize>${log.fileSize}</maxFileSize>
+ <maxHistory>${log.historyDays}</maxHistory>
+ <totalSizeCap>1GB</totalSizeCap>
+ </rollingPolicy>
+ </appender>
+
+ <appender name="fileErrorLog" class="ch.qos.logback.core.rolling.RollingFileAppender">
+ <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
+ <level>ERROR</level>
+ </filter>
+ <encoder>
+ <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern>
+ </encoder>
+ <!--婊氬姩绛栫暐-->
+ <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
+ <!--璺緞-->
+ <fileNamePattern>${log.path}/error.%d.%i.log</fileNamePattern>
+ <maxFileSize>${log.fileSize}</maxFileSize>
+ <maxHistory>${log.historyDays}</maxHistory>
+ <totalSizeCap>1GB</totalSizeCap>
+ </rollingPolicy>
+ </appender>
+ <!-- 寮傛鍐欏叆鏃ュ織 -->
+ <appender name ="ASYNC" class= "ch.qos.logback.classic.AsyncAppender">
+ <!-- 涓嶄涪澶辨棩蹇�.榛樿鐨�,濡傛灉闃熷垪鐨�80%宸叉弧,鍒欎細涓㈠純TRACT銆丏EBUG銆両NFO绾у埆鐨勬棩蹇� -->
+ <discardingThreshold >0</discardingThreshold>
+ <!-- 鏇存敼榛樿鐨勯槦鍒楃殑娣卞害,璇ュ�间細褰卞搷鎬ц兘.榛樿鍊间负256 -->
+ <queueSize>512</queueSize>
+ <!-- 娣诲姞闄勫姞鐨刟ppender,鏈�澶氬彧鑳芥坊鍔犱竴涓� -->
+ <appender-ref ref ="fileInfoLog"/>
+ </appender>
+ <root level="info">
+ <appender-ref ref="consoleLog"/>
+ <appender-ref ref="fileInfoLog"/>
+ <appender-ref ref="fileErrorLog"/>
+ </root>
+</configuration>
\ No newline at end of file
diff --git a/server/platform/src/main/resources/logback-spring.xml b/server/platform/src/main/resources/logback-spring.xml
new file mode 100644
index 0000000..23b9b35
--- /dev/null
+++ b/server/platform/src/main/resources/logback-spring.xml
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+ <appender name="consoleLog" class="ch.qos.logback.core.ConsoleAppender">
+ <layout class="ch.qos.logback.classic.PatternLayout">
+ <pattern>%highlight(%date{yyyy-MM-dd HH:mm:ss}) | %highlight(%-5level) | %highlight(%thread) | %highlight(%logger) | %msg%n</pattern>
+ </layout>
+ </appender>
+ <property name="log.path" value="log/admin"></property>
+ <property name="log.fileSize" value="100MB"></property>
+ <property name="log.historyDays" value="7"></property>
+
+ <appender name="fileInfoLog" class="ch.qos.logback.core.rolling.RollingFileAppender">
+ <filter class="ch.qos.logback.classic.filter.LevelFilter">
+ <level>ERROR</level>
+ <!--鍖归厤灏辫垗鍘�-->
+ <onMatch>DENY</onMatch>
+ <onMismatch>ACCEPT</onMismatch>
+ </filter>
+ <encoder>
+ <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern>
+ </encoder>
+ <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
+ <!--璺緞-->
+ <fileNamePattern>${log.path}/info.%d.%i.log</fileNamePattern>
+ <maxFileSize>${log.fileSize}</maxFileSize>
+ <maxHistory>${log.historyDays}</maxHistory>
+ <totalSizeCap>1GB</totalSizeCap>
+ </rollingPolicy>
+ </appender>
+
+ <appender name="fileErrorLog" class="ch.qos.logback.core.rolling.RollingFileAppender">
+ <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
+ <level>ERROR</level>
+ </filter>
+ <encoder>
+ <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern>
+ </encoder>
+ <!--婊氬姩绛栫暐-->
+ <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
+ <!--璺緞-->
+ <fileNamePattern>${log.path}/error.%d.%i.log</fileNamePattern>
+ <maxFileSize>${log.fileSize}</maxFileSize>
+ <maxHistory>${log.historyDays}</maxHistory>
+ <totalSizeCap>1GB</totalSizeCap>
+ </rollingPolicy>
+ </appender>
+ <!-- 寮傛鍐欏叆鏃ュ織 -->
+ <appender name ="ASYNC" class= "ch.qos.logback.classic.AsyncAppender">
+ <!-- 涓嶄涪澶辨棩蹇�.榛樿鐨�,濡傛灉闃熷垪鐨�80%宸叉弧,鍒欎細涓㈠純TRACT銆丏EBUG銆両NFO绾у埆鐨勬棩蹇� -->
+ <discardingThreshold >0</discardingThreshold>
+ <!-- 鏇存敼榛樿鐨勯槦鍒楃殑娣卞害,璇ュ�间細褰卞搷鎬ц兘.榛樿鍊间负256 -->
+ <queueSize>512</queueSize>
+ <!-- 娣诲姞闄勫姞鐨刟ppender,鏈�澶氬彧鑳芥坊鍔犱竴涓� -->
+ <appender-ref ref ="fileInfoLog"/>
+ </appender>
+ <root level="info">
+ <appender-ref ref="consoleLog"/>
+ <appender-ref ref="fileInfoLog"/>
+ <appender-ref ref="fileErrorLog"/>
+ </root>
+</configuration>
\ No newline at end of file
diff --git a/server/service/src/main/resources/logback-spring.xml b/server/service/src/main/resources/logback-spring.xml
deleted file mode 100644
index 3f47325..0000000
--- a/server/service/src/main/resources/logback-spring.xml
+++ /dev/null
@@ -1,40 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<configuration>
- <springProperty scope="context" name="logbackLevel" source="logback.level"/>
- <springProperty scope="context" name="logbackAppender" source="logback.appender"/>
- <!-- 寮�鍙戠幆澧冿紙杈撳嚭鍒版帶鍒跺彴锛� -->
- <appender name="development" class="ch.qos.logback.core.ConsoleAppender">
- <encoder>
- <!-- 璁剧疆鏃ュ織杈撳嚭鏍煎紡 -->
- <pattern>%d %p (%file:%line\)- %m%n</pattern>
- <!-- 杈撳嚭缂栫爜 -->
- <charset>UTF-8</charset>
- </encoder>
- </appender>
-
- <!-- 娴嬭瘯/绾夸笂鐜锛堥�氳繃鏃ユ湡鍒嗗壊鏃ュ織鏂囦欢锛� -->
- <appender name="production"
- class="ch.qos.logback.core.rolling.RollingFileAppender">
- <File>log/eva.log</File>
- <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
- <!-- 鏂囦欢鍚嶉厤缃� -->
- <fileNamePattern>log/eva-%d.%i.log</fileNamePattern>
- <!-- 鏃ュ織鏂囦欢淇濆瓨鏈熼檺锛堝崟浣嶅ぉ锛� -->
- <maxHistory>30</maxHistory>
- <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
- <!-- 璁剧疆鏃ュ織鏂囦欢澶у皬锛岄粯璁ゅ�兼槸10MB-->
- <maxFileSize>100MB</maxFileSize>
- </timeBasedFileNamingAndTriggeringPolicy>
- </rollingPolicy>
- <encoder>
- <!-- 璁剧疆鏃ュ織杈撳嚭鏍煎紡 -->
- <pattern>%d %p (%file:%line\)- %m%n</pattern>
- <!-- 杈撳嚭缂栫爜 -->
- <charset>UTF-8</charset>
- </encoder>
- </appender>
- <!-- 璁剧疆鏃ュ織绾у埆鍜岃緭鍑烘ā寮� -->
- <root level="${logbackLevel}">
- <appender-ref ref="${logbackAppender}" />
- </root>
-</configuration>
diff --git a/server/shop/src/main/resources/logback-spring.xml b/server/shop/src/main/resources/logback-spring.xml
new file mode 100644
index 0000000..a0defb3
--- /dev/null
+++ b/server/shop/src/main/resources/logback-spring.xml
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+ <appender name="consoleLog" class="ch.qos.logback.core.ConsoleAppender">
+ <layout class="ch.qos.logback.classic.PatternLayout">
+ <pattern>%highlight(%date{yyyy-MM-dd HH:mm:ss}) | %highlight(%-5level) | %highlight(%thread) | %highlight(%logger) | %msg%n</pattern>
+ </layout>
+ </appender>
+ <property name="log.path" value="log/shop"></property>
+ <property name="log.fileSize" value="100MB"></property>
+ <property name="log.historyDays" value="7"></property>
+
+ <appender name="fileInfoLog" class="ch.qos.logback.core.rolling.RollingFileAppender">
+ <filter class="ch.qos.logback.classic.filter.LevelFilter">
+ <level>ERROR</level>
+ <!--鍖归厤灏辫垗鍘�-->
+ <onMatch>DENY</onMatch>
+ <onMismatch>ACCEPT</onMismatch>
+ </filter>
+ <encoder>
+ <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern>
+ </encoder>
+ <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
+ <!--璺緞-->
+ <fileNamePattern>${log.path}/info.%d.%i.log</fileNamePattern>
+ <maxFileSize>${log.fileSize}</maxFileSize>
+ <maxHistory>${log.historyDays}</maxHistory>
+ <totalSizeCap>1GB</totalSizeCap>
+ </rollingPolicy>
+ </appender>
+
+ <appender name="fileErrorLog" class="ch.qos.logback.core.rolling.RollingFileAppender">
+ <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
+ <level>ERROR</level>
+ </filter>
+ <encoder>
+ <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern>
+ </encoder>
+ <!--婊氬姩绛栫暐-->
+ <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
+ <!--璺緞-->
+ <fileNamePattern>${log.path}/error.%d.%i.log</fileNamePattern>
+ <maxFileSize>${log.fileSize}</maxFileSize>
+ <maxHistory>${log.historyDays}</maxHistory>
+ <totalSizeCap>1GB</totalSizeCap>
+ </rollingPolicy>
+ </appender>
+ <!-- 寮傛鍐欏叆鏃ュ織 -->
+ <appender name ="ASYNC" class= "ch.qos.logback.classic.AsyncAppender">
+ <!-- 涓嶄涪澶辨棩蹇�.榛樿鐨�,濡傛灉闃熷垪鐨�80%宸叉弧,鍒欎細涓㈠純TRACT銆丏EBUG銆両NFO绾у埆鐨勬棩蹇� -->
+ <discardingThreshold >0</discardingThreshold>
+ <!-- 鏇存敼榛樿鐨勯槦鍒楃殑娣卞害,璇ュ�间細褰卞搷鎬ц兘.榛樿鍊间负256 -->
+ <queueSize>512</queueSize>
+ <!-- 娣诲姞闄勫姞鐨刟ppender,鏈�澶氬彧鑳芥坊鍔犱竴涓� -->
+ <appender-ref ref ="fileInfoLog"/>
+ </appender>
+ <root level="info">
+ <appender-ref ref="consoleLog"/>
+ <appender-ref ref="fileInfoLog"/>
+ <appender-ref ref="fileErrorLog"/>
+ </root>
+</configuration>
\ No newline at end of file
--
Gitblit v1.9.3