diff --git a/springboot-xxljob/pom.xml b/springboot-xxljob/pom.xml index 626b99eed7468f06a382cad237c97bde292a5cf8..8fc59b0f6887acd4f7eebde40e6fe2c43079f4ec 100644 --- a/springboot-xxljob/pom.xml +++ b/springboot-xxljob/pom.xml @@ -74,6 +74,7 @@ + springboot-xxljob org.springframework.boot diff --git a/springboot-xxljob/src/main/resources/application.yml b/springboot-xxljob/src/main/resources/application.yml index 55d69a0195088fa925601f8951f0628ff8196269..1c73c7b090d1de536ad6dc0327e59ee6b363aab8 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 0000000000000000000000000000000000000000..5c689df973f606444d893871b1e39ebf78c5dd10 --- /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