From de416ad6206e1f226ce5930c280abbccd8e790d9 Mon Sep 17 00:00:00 2001 From: Button <2740277548@qq.com> Date: Wed, 14 Jul 2021 11:22:07 +0000 Subject: [PATCH 1/2] update springboot-xxljob/pom.xml. --- springboot-xxljob/pom.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/springboot-xxljob/pom.xml b/springboot-xxljob/pom.xml index 626b99e..8fc59b0 100644 --- a/springboot-xxljob/pom.xml +++ b/springboot-xxljob/pom.xml @@ -74,6 +74,7 @@ + springboot-xxljob org.springframework.boot -- Gitee From 6ea6944b01300c7d4d05a61dc9730116087c7fb6 Mon Sep 17 00:00:00 2001 From: Button <2740277548@qq.com> Date: Wed, 14 Jul 2021 19:40:12 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/application.yml | 5 +++- .../src/main/resources/logback.xml | 30 +++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 springboot-xxljob/src/main/resources/logback.xml diff --git a/springboot-xxljob/src/main/resources/application.yml b/springboot-xxljob/src/main/resources/application.yml index 55d69a0..1c73c7b 100644 --- a/springboot-xxljob/src/main/resources/application.yml +++ b/springboot-xxljob/src/main/resources/application.yml @@ -8,6 +8,9 @@ server: max: 1000 min-spare: 100 +logging: + file: logback.xml + spring: datasource: type: com.alibaba.druid.pool.DruidDataSource @@ -28,4 +31,4 @@ xxl: ip: '' logpath: /data/applogs/xxl-job/jobhandler logretentiondays: -1 - port: 8901 \ No newline at end of file + port: 9999 \ No newline at end of file diff --git a/springboot-xxljob/src/main/resources/logback.xml b/springboot-xxljob/src/main/resources/logback.xml new file mode 100644 index 0000000..5c689df --- /dev/null +++ b/springboot-xxljob/src/main/resources/logback.xml @@ -0,0 +1,30 @@ + + + + + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} -%msg%n + + + + ${LOG_HOME}/springboot_mail.log + + + ${LOG_HOME}/springboot_mail.log.%d{yyyy-MM-dd}.%i.log + + + 100MB + + 10 + + + %d{HH:mm:ss.SSS} [%thread] %-5level %logger{50} -%msg%n + + + + + + + + \ No newline at end of file -- Gitee