From e52c62cf24c1ab82925c9541e117edf4b6ca12e4 Mon Sep 17 00:00:00 2001 From: zeek <984294471@qq.com> Date: Mon, 16 Mar 2020 23:36:25 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E5=90=AF=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + bin/restart.sh | 1 + bin/start.sh | 1 + bin/stop.sh | 1 + pom.xml | 24 +++++++++++++ .../zeekling/solo/weixin/package-info.java | 7 ---- src/main/resources/application-dev.properties | 2 ++ src/main/resources/logback.xml | 36 +++++++++++++++++++ 8 files changed, 66 insertions(+), 7 deletions(-) create mode 100755 bin/restart.sh create mode 100755 bin/start.sh create mode 100755 bin/stop.sh delete mode 100644 src/main/java/com/zeekling/solo/weixin/package-info.java create mode 100644 src/main/resources/logback.xml diff --git a/.gitignore b/.gitignore index 5f8523b..c7df61a 100644 --- a/.gitignore +++ b/.gitignore @@ -119,3 +119,4 @@ fabric.properties .idea target *.iml +logs \ No newline at end of file diff --git a/bin/restart.sh b/bin/restart.sh new file mode 100755 index 0000000..212c4ba --- /dev/null +++ b/bin/restart.sh @@ -0,0 +1 @@ +#!/usr/bin/env bash \ No newline at end of file diff --git a/bin/start.sh b/bin/start.sh new file mode 100755 index 0000000..212c4ba --- /dev/null +++ b/bin/start.sh @@ -0,0 +1 @@ +#!/usr/bin/env bash \ No newline at end of file diff --git a/bin/stop.sh b/bin/stop.sh new file mode 100755 index 0000000..212c4ba --- /dev/null +++ b/bin/stop.sh @@ -0,0 +1 @@ +#!/usr/bin/env bash \ No newline at end of file diff --git a/pom.xml b/pom.xml index a5bebc4..371a186 100644 --- a/pom.xml +++ b/pom.xml @@ -36,12 +36,36 @@ org.springframework.boot spring-boot-starter-web ${spring-boot.version} + + + ch.qos.logback + logback-classic + + org.springframework.boot spring-boot-starter ${spring-boot.version} + + + ch.qos.logback + logback-classic + + + + + + org.springframework.boot + spring-boot-starter-logging + ${spring-boot.version} + + + ch.qos.logback + logback-classic + + diff --git a/src/main/java/com/zeekling/solo/weixin/package-info.java b/src/main/java/com/zeekling/solo/weixin/package-info.java deleted file mode 100644 index 039ade1..0000000 --- a/src/main/java/com/zeekling/solo/weixin/package-info.java +++ /dev/null @@ -1,7 +0,0 @@ -/** - * @apiNote - * @version 1.0 - * @author zeekling [lingzhaohui@zeekling.cn] - * @since 2020-03-15 - */ -package com.zeekling.solo.weixin; \ No newline at end of file diff --git a/src/main/resources/application-dev.properties b/src/main/resources/application-dev.properties index e69de29..8d92cff 100644 --- a/src/main/resources/application-dev.properties +++ b/src/main/resources/application-dev.properties @@ -0,0 +1,2 @@ +server.port=9090 +logging.file=/home/zeek/project/solo-weixin/logs/weixin.log \ No newline at end of file diff --git a/src/main/resources/logback.xml b/src/main/resources/logback.xml new file mode 100644 index 0000000..44d4570 --- /dev/null +++ b/src/main/resources/logback.xml @@ -0,0 +1,36 @@ + + + logback + + + + + + %d{HH:mm:ss.SSS} %contextName [%thread] %-5level %logger{36} - %msg%n + + + + + + + ${log.path}/logback.%d{yyyy-MM-dd}.log + + + %d{HH:mm:ss.SSS} %contextName [%thread] %-5level %logger{36} - %msg%n + + + + + + + + + + + + + + + \ No newline at end of file