From c6952de84c482106ef079c990386d9d94dae7379 Mon Sep 17 00:00:00 2001 From: LamGC Date: Sat, 25 Apr 2020 17:07:13 +0800 Subject: [PATCH] =?UTF-8?q?[Add]=20log4j2-test.xml=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=BF=90=E8=A1=8C=E6=97=B6=E7=9A=84=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6;=20[Add]=20pom.xm?= =?UTF-8?q?l=20=E8=AE=BE=E7=BD=AEpackage=20goal=E7=9A=84=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=8E=92=E9=99=A4=E9=A1=B9,=20=E5=B0=86=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E8=BF=90=E8=A1=8C=E6=89=80=E4=BD=BF=E7=94=A8=E7=9A=84=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6(log4j2-test.xml)?= =?UTF-8?q?=E6=8E=92=E9=99=A4;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 10 ++++++++ src/main/resources/log4j2-test.xml | 39 ++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 src/main/resources/log4j2-test.xml diff --git a/pom.xml b/pom.xml index d8f2bfc..4d7cfd2 100644 --- a/pom.xml +++ b/pom.xml @@ -36,6 +36,16 @@ 8 + + org.apache.maven.plugins + maven-jar-plugin + 3.0.2 + + + log4j2-test.xml + + + org.springframework.boot spring-boot-maven-plugin diff --git a/src/main/resources/log4j2-test.xml b/src/main/resources/log4j2-test.xml new file mode 100644 index 0000000..61868ac --- /dev/null +++ b/src/main/resources/log4j2-test.xml @@ -0,0 +1,39 @@ + + + + ./logs + UTF-8 + [%-d{HH:mm:ss.SSS} %5level][%logger.%method():%-3L][%thread]: %msg%n + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file