From 832364114466600027bb11b15964152b2a023e49 Mon Sep 17 00:00:00 2001 From: Xia Kaixiang Date: Tue, 23 Jul 2019 11:02:48 +0800 Subject: [PATCH] =?utf8?q?=E5=89=8D=E7=BD=AE=E6=97=A5=E5=BF=97=E9=85=8D?= =?utf8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/application.properties | 9 ++++- ynrcc-agent/src/main/resources/logback.xml | 39 +++++++++++++++++++ 2 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 ynrcc-agent/src/main/resources/logback.xml diff --git a/ynrcc-agent/src/main/resources/application.properties b/ynrcc-agent/src/main/resources/application.properties index 18f790d6..babfea2c 100644 --- a/ynrcc-agent/src/main/resources/application.properties +++ b/ynrcc-agent/src/main/resources/application.properties @@ -14,8 +14,13 @@ #spring.redis.password=kingstar #spring.redis.database=0 # logging -logging.pattern.console=%d{yyyy-MM-dd HH:mm:ss} %-5level %logger{36} - %msg%n -logging.level.org.hibernate.SQL=debug +logging.config=classpath:logback.xml +logging.level.root=info + +#logging.pattern.console=%d{yyyy-MM-dd HH:mm:ss} %-5level %logger{36} - %msg%n +#logging.level.com.supwisdom.agent=info +#logging.file=./log/ynrccagent.txt +#logging.pattern.file=%d{yyyy-MM-dd HH:mm:ss} %-5level %logger{36} - %msg%n #################### JSP PAGE #################### server.servlet.context-path=/ynrccagent ################## 全局字符编码设置 ###################### diff --git a/ynrcc-agent/src/main/resources/logback.xml b/ynrcc-agent/src/main/resources/logback.xml new file mode 100644 index 00000000..5d0d4bdf --- /dev/null +++ b/ynrcc-agent/src/main/resources/logback.xml @@ -0,0 +1,39 @@ + + + + + + + + + + + + ${LOG_PATTERN} + + + + + + + + ${FILE_PATH} + + 100MB + + + + + ${LOG_PATTERN} + + + + + + + + + + + + \ No newline at end of file -- 2.17.1