From 2a7946ae42f03de8a6856107f724f6e52f622e9e Mon Sep 17 00:00:00 2001 From: zhangdaiscott Date: Mon, 25 Jan 2021 15:03:14 +0800 Subject: [PATCH] =?UTF-8?q?JeecgBoot=202.4.2=20=E7=A7=AF=E6=9C=A8=E6=8A=A5?= =?UTF-8?q?=E8=A1=A8=E7=89=88=E6=9C=AC=E5=8F=91=E5=B8=83=EF=BC=8C=E5=9F=BA?= =?UTF-8?q?=E4=BA=8ESpringBoot=E7=9A=84=E4=BD=8E=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E5=B9=B3=E5=8F=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jeecg-cloud-example/Dockerfile | 8 ++-- .../src/main/resources/logback-spring.xml | 44 +++++++++++++++++++ 2 files changed, 48 insertions(+), 4 deletions(-) create mode 100644 jeecg-boot/jeecg-cloud-module/jeecg-cloud-gateway/src/main/resources/logback-spring.xml diff --git a/jeecg-boot/jeecg-cloud-module/jeecg-cloud-example/Dockerfile b/jeecg-boot/jeecg-cloud-module/jeecg-cloud-example/Dockerfile index ace0cccd..489deb98 100644 --- a/jeecg-boot/jeecg-cloud-module/jeecg-cloud-example/Dockerfile +++ b/jeecg-boot/jeecg-cloud-module/jeecg-cloud-example/Dockerfile @@ -4,13 +4,13 @@ MAINTAINER jeecgos@163.com RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime -RUN mkdir -p /jeecg-cloud-demo +RUN mkdir -p /jeecg-cloud-example -WORKDIR /jeecg-cloud-demo +WORKDIR /jeecg-cloud-example EXPOSE 7001 -ADD ./target/jeecg-cloud-demo-2.4.2.jar ./ +ADD ./target/jeecg-cloud-example-2.4.2.jar ./ -CMD java -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar jeecg-cloud-demo-2.4.2.jar +CMD java -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar jeecg-cloud-example-2.4.2.jar diff --git a/jeecg-boot/jeecg-cloud-module/jeecg-cloud-gateway/src/main/resources/logback-spring.xml b/jeecg-boot/jeecg-cloud-module/jeecg-cloud-gateway/src/main/resources/logback-spring.xml new file mode 100644 index 00000000..6bffa75e --- /dev/null +++ b/jeecg-boot/jeecg-cloud-module/jeecg-cloud-gateway/src/main/resources/logback-spring.xml @@ -0,0 +1,44 @@ + + + + + + + + + + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %highlight(%-5level) %cyan(%logger{50}:%L) - %msg%n + + + + + + + + ${LOG_HOME}/jeecgboot-%d{yyyy-MM-dd}.%i.log + + 30 + 10MB + + + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50}:%L - %msg%n + + + + + + + + + + + + + + + + + \ No newline at end of file -- GitLab