diff --git a/config/application.yml b/config/application.yml
index 623e5d6c..ee42cfe0 100644
--- a/config/application.yml
+++ b/config/application.yml
@@ -129,6 +129,13 @@ management:
web:
exposure:
include: '*'
+ endpoint:
+ logfile:
+ external-file: ./logs/${spring.application.name}/console.log
+
+# 日志配置
+logging:
+ config: classpath:logback.xml
# redisson 缓存配置
redisson:
diff --git a/ruoyi-auth/src/main/resources/logback.xml b/ruoyi-auth/src/main/resources/logback.xml
index 098a610b..605d58c6 100644
--- a/ruoyi-auth/src/main/resources/logback.xml
+++ b/ruoyi-auth/src/main/resources/logback.xml
@@ -3,15 +3,37 @@
-
+
+
- ${log.pattern}
+ ${console.log.pattern}
+ utf-8
+
+
+ ${log.path}/console.log
+
+
+ ${log.path}/console.%d{yyyy-MM-dd}.log
+
+ 1
+
+
+ ${log.pattern}
+ utf-8
+
+
+
+ INFO
+
+
+
${log.path}/info.log
@@ -70,5 +92,6 @@
+
\ No newline at end of file
diff --git a/ruoyi-gateway/src/main/resources/logback.xml b/ruoyi-gateway/src/main/resources/logback.xml
index f8e7f8af..0d54b784 100644
--- a/ruoyi-gateway/src/main/resources/logback.xml
+++ b/ruoyi-gateway/src/main/resources/logback.xml
@@ -3,14 +3,36 @@
-
+
+
-
-
- ${log.pattern}
-
-
+
+
+ ${console.log.pattern}
+ utf-8
+
+
+
+
+
+ ${log.path}/console.log
+
+
+ ${log.path}/console.%d{yyyy-MM-dd}.log
+
+ 1
+
+
+ ${log.pattern}
+ utf-8
+
+
+
+ INFO
+
+
@@ -70,5 +92,6 @@
+
\ No newline at end of file
diff --git a/ruoyi-modules/ruoyi-file/src/main/resources/logback.xml b/ruoyi-modules/ruoyi-file/src/main/resources/logback.xml
index 9c38c7f7..f0c4fc30 100644
--- a/ruoyi-modules/ruoyi-file/src/main/resources/logback.xml
+++ b/ruoyi-modules/ruoyi-file/src/main/resources/logback.xml
@@ -3,14 +3,36 @@
-
+
+
-
-
- ${log.pattern}
-
-
+
+
+ ${console.log.pattern}
+ utf-8
+
+
+
+
+
+ ${log.path}/console.log
+
+
+ ${log.path}/console.%d{yyyy-MM-dd}.log
+
+ 1
+
+
+ ${log.pattern}
+ utf-8
+
+
+
+ INFO
+
+
@@ -70,5 +92,6 @@
+
\ No newline at end of file
diff --git a/ruoyi-modules/ruoyi-gen/src/main/resources/logback.xml b/ruoyi-modules/ruoyi-gen/src/main/resources/logback.xml
index 250c080f..370492b8 100644
--- a/ruoyi-modules/ruoyi-gen/src/main/resources/logback.xml
+++ b/ruoyi-modules/ruoyi-gen/src/main/resources/logback.xml
@@ -3,14 +3,36 @@
-
+
+
-
-
- ${log.pattern}
-
-
+
+
+ ${console.log.pattern}
+ utf-8
+
+
+
+
+
+ ${log.path}/console.log
+
+
+ ${log.path}/console.%d{yyyy-MM-dd}.log
+
+ 1
+
+
+ ${log.pattern}
+ utf-8
+
+
+
+ INFO
+
+
@@ -70,5 +92,6 @@
+
\ No newline at end of file
diff --git a/ruoyi-modules/ruoyi-system/src/main/resources/logback.xml b/ruoyi-modules/ruoyi-system/src/main/resources/logback.xml
index 96bc0bbe..1bc7084c 100644
--- a/ruoyi-modules/ruoyi-system/src/main/resources/logback.xml
+++ b/ruoyi-modules/ruoyi-system/src/main/resources/logback.xml
@@ -3,14 +3,36 @@
-
+
+
-
-
- ${log.pattern}
-
-
+
+
+ ${console.log.pattern}
+ utf-8
+
+
+
+
+
+ ${log.path}/console.log
+
+
+ ${log.path}/console.%d{yyyy-MM-dd}.log
+
+ 1
+
+
+ ${log.pattern}
+ utf-8
+
+
+
+ INFO
+
+
@@ -70,5 +92,6 @@
+
\ No newline at end of file
diff --git a/ruoyi-visual/ruoyi-monitor/src/main/resources/logback.xml b/ruoyi-visual/ruoyi-monitor/src/main/resources/logback.xml
index ab95c683..e0d0d18b 100644
--- a/ruoyi-visual/ruoyi-monitor/src/main/resources/logback.xml
+++ b/ruoyi-visual/ruoyi-monitor/src/main/resources/logback.xml
@@ -1,16 +1,38 @@
-
+
-
+
+
-
-
- ${log.pattern}
-
-
+
+
+ ${console.log.pattern}
+ utf-8
+
+
+
+
+
+ ${log.path}/console.log
+
+
+ ${log.path}/console.%d{yyyy-MM-dd}.log
+
+ 1
+
+
+ ${log.pattern}
+ utf-8
+
+
+
+ INFO
+
+
@@ -70,5 +92,6 @@
+
\ No newline at end of file