From 7bd620d36bb48694b355cd6e047ad1312d87f0ca Mon Sep 17 00:00:00 2001 From: hsdllcw Date: Sat, 14 Dec 2024 17:40:05 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=20=E9=87=8D=E6=96=B0=E8=AE=BE=E5=AE=9A?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E4=BB=A5=E4=BE=BF=E5=9C=A8=E7=BA=BF=E6=9F=A5?= =?UTF-8?q?=E7=9C=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-auth/src/main/resources/bootstrap-dev.yml | 7 ++++++- ruoyi-auth/src/main/resources/bootstrap-prod.yml | 7 ++++++- ruoyi-auth/src/main/resources/bootstrap-test.yml | 7 ++++++- ruoyi-gateway/src/main/resources/bootstrap-dev.yml | 7 ++++++- ruoyi-gateway/src/main/resources/bootstrap-prod.yml | 7 ++++++- ruoyi-gateway/src/main/resources/bootstrap-test.yml | 7 ++++++- .../ruoyi-system/src/main/resources/bootstrap-dev.yml | 7 ++++++- .../ruoyi-system/src/main/resources/bootstrap-prod.yml | 7 ++++++- .../ruoyi-system/src/main/resources/bootstrap-test.yml | 7 ++++++- 9 files changed, 54 insertions(+), 9 deletions(-) diff --git a/ruoyi-auth/src/main/resources/bootstrap-dev.yml b/ruoyi-auth/src/main/resources/bootstrap-dev.yml index 079c1cdc4..adb73ea13 100644 --- a/ruoyi-auth/src/main/resources/bootstrap-dev.yml +++ b/ruoyi-auth/src/main/resources/bootstrap-dev.yml @@ -25,4 +25,9 @@ spring: - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension} namespace: 78a7f41e-46cc-437a-9716-735888227693 username: nacos - password: u0uM2RIp3Xle9VVFWtpzoz9ZdNbwG6PpWsjrOVphXzlDc0jA \ No newline at end of file + password: u0uM2RIp3Xle9VVFWtpzoz9ZdNbwG6PpWsjrOVphXzlDc0jA +logging: + file: + name: dev-ruoyi-auth.log + pattern: + file: "%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(%5p) %clr(${PID}){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n%wEx" \ No newline at end of file diff --git a/ruoyi-auth/src/main/resources/bootstrap-prod.yml b/ruoyi-auth/src/main/resources/bootstrap-prod.yml index e897d8bed..90c88f768 100644 --- a/ruoyi-auth/src/main/resources/bootstrap-prod.yml +++ b/ruoyi-auth/src/main/resources/bootstrap-prod.yml @@ -26,4 +26,9 @@ spring: - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension} namespace: e2708b29-ca15-4f63-a919-d33932ebdfda username: nacos - password: u0uM2RIp3Xle9VVFWtpzoz9ZdNbwG6PpWsjrOVphXzlDc0jA \ No newline at end of file + password: u0uM2RIp3Xle9VVFWtpzoz9ZdNbwG6PpWsjrOVphXzlDc0jA +logging: + file: + name: prod-ruoyi-auth.log + pattern: + file: "%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(%5p) %clr(${PID}){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n%wEx" \ No newline at end of file diff --git a/ruoyi-auth/src/main/resources/bootstrap-test.yml b/ruoyi-auth/src/main/resources/bootstrap-test.yml index cad09fd51..4f32aefc8 100644 --- a/ruoyi-auth/src/main/resources/bootstrap-test.yml +++ b/ruoyi-auth/src/main/resources/bootstrap-test.yml @@ -25,4 +25,9 @@ spring: - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension} namespace: 45c724b0-9b42-4ff2-bff2-9220a1788392 username: nacos - password: u0uM2RIp3Xle9VVFWtpzoz9ZdNbwG6PpWsjrOVphXzlDc0jA \ No newline at end of file + password: u0uM2RIp3Xle9VVFWtpzoz9ZdNbwG6PpWsjrOVphXzlDc0jA +logging: + file: + name: test-ruoyi-auth.log + pattern: + file: "%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(%5p) %clr(${PID}){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n%wEx" \ No newline at end of file diff --git a/ruoyi-gateway/src/main/resources/bootstrap-dev.yml b/ruoyi-gateway/src/main/resources/bootstrap-dev.yml index e544aafe6..9efc6bb39 100644 --- a/ruoyi-gateway/src/main/resources/bootstrap-dev.yml +++ b/ruoyi-gateway/src/main/resources/bootstrap-dev.yml @@ -40,4 +40,9 @@ spring: dataId: sentinel-ruoyi-gateway groupId: DEFAULT_GROUP data-type: json - rule-type: gw-flow \ No newline at end of file + rule-type: gw-flow +logging: + file: + name: dev-ruoyi-gateway.log + pattern: + file: "%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(%5p) %clr(${PID}){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n%wEx" \ No newline at end of file diff --git a/ruoyi-gateway/src/main/resources/bootstrap-prod.yml b/ruoyi-gateway/src/main/resources/bootstrap-prod.yml index 63c81d5bb..ba774ef13 100644 --- a/ruoyi-gateway/src/main/resources/bootstrap-prod.yml +++ b/ruoyi-gateway/src/main/resources/bootstrap-prod.yml @@ -41,4 +41,9 @@ spring: dataId: sentinel-ruoyi-gateway groupId: DEFAULT_GROUP data-type: json - rule-type: gw-flow \ No newline at end of file + rule-type: gw-flow +logging: + file: + name: prod-ruoyi-gateway.log + pattern: + file: "%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(%5p) %clr(${PID}){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n%wEx" \ No newline at end of file diff --git a/ruoyi-gateway/src/main/resources/bootstrap-test.yml b/ruoyi-gateway/src/main/resources/bootstrap-test.yml index f654dafd5..3418f8125 100644 --- a/ruoyi-gateway/src/main/resources/bootstrap-test.yml +++ b/ruoyi-gateway/src/main/resources/bootstrap-test.yml @@ -40,4 +40,9 @@ spring: dataId: sentinel-ruoyi-gateway groupId: DEFAULT_GROUP data-type: json - rule-type: gw-flow \ No newline at end of file + rule-type: gw-flow +logging: + file: + name: test-ruoyi-gateway.log + pattern: + file: "%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(%5p) %clr(${PID}){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n%wEx" \ No newline at end of file diff --git a/ruoyi-modules/ruoyi-system/src/main/resources/bootstrap-dev.yml b/ruoyi-modules/ruoyi-system/src/main/resources/bootstrap-dev.yml index cdeab24e6..79784ca31 100644 --- a/ruoyi-modules/ruoyi-system/src/main/resources/bootstrap-dev.yml +++ b/ruoyi-modules/ruoyi-system/src/main/resources/bootstrap-dev.yml @@ -25,4 +25,9 @@ spring: - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension} namespace: 78a7f41e-46cc-437a-9716-735888227693 username: nacos - password: u0uM2RIp3Xle9VVFWtpzoz9ZdNbwG6PpWsjrOVphXzlDc0jA \ No newline at end of file + password: u0uM2RIp3Xle9VVFWtpzoz9ZdNbwG6PpWsjrOVphXzlDc0jA +logging: + file: + name: dev-ruoyi-system.log + pattern: + file: "%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(%5p) %clr(${PID}){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n%wEx" \ No newline at end of file diff --git a/ruoyi-modules/ruoyi-system/src/main/resources/bootstrap-prod.yml b/ruoyi-modules/ruoyi-system/src/main/resources/bootstrap-prod.yml index 8309af025..6281072f6 100644 --- a/ruoyi-modules/ruoyi-system/src/main/resources/bootstrap-prod.yml +++ b/ruoyi-modules/ruoyi-system/src/main/resources/bootstrap-prod.yml @@ -25,4 +25,9 @@ spring: - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension} namespace: e2708b29-ca15-4f63-a919-d33932ebdfda username: nacos - password: u0uM2RIp3Xle9VVFWtpzoz9ZdNbwG6PpWsjrOVphXzlDc0jA \ No newline at end of file + password: u0uM2RIp3Xle9VVFWtpzoz9ZdNbwG6PpWsjrOVphXzlDc0jA +logging: + file: + name: prod-ruoyi-system.log + pattern: + file: "%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(%5p) %clr(${PID}){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n%wEx" \ No newline at end of file diff --git a/ruoyi-modules/ruoyi-system/src/main/resources/bootstrap-test.yml b/ruoyi-modules/ruoyi-system/src/main/resources/bootstrap-test.yml index 55020a44c..fe61111d3 100644 --- a/ruoyi-modules/ruoyi-system/src/main/resources/bootstrap-test.yml +++ b/ruoyi-modules/ruoyi-system/src/main/resources/bootstrap-test.yml @@ -24,4 +24,9 @@ spring: - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension} namespace: 45c724b0-9b42-4ff2-bff2-9220a1788392 username: nacos - password: u0uM2RIp3Xle9VVFWtpzoz9ZdNbwG6PpWsjrOVphXzlDc0jA \ No newline at end of file + password: u0uM2RIp3Xle9VVFWtpzoz9ZdNbwG6PpWsjrOVphXzlDc0jA +logging: + file: + name: test-ruoyi-system.log + pattern: + file: "%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(%5p) %clr(${PID}){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n%wEx" \ No newline at end of file