From 004537b8654f54356b13fa8bfb193155b602a901 Mon Sep 17 00:00:00 2001 From: wangliwen Date: Wed, 20 Apr 2022 14:51:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E7=82=B9=E6=97=A5=E5=BF=97=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E7=9A=84=E5=86=99=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 +- .../src/main/resources/logback-spring.xml | 59 ++++++++++++++++--- 2 files changed, 54 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 81a33ed4..59c7f699 100644 --- a/.gitignore +++ b/.gitignore @@ -22,4 +22,5 @@ build/ nbbuild/ dist/ nbdist/ -.nb-gradle/ \ No newline at end of file +.nb-gradle/ +logs/ diff --git a/renren-admin/src/main/resources/logback-spring.xml b/renren-admin/src/main/resources/logback-spring.xml index 1d022a7d..c0433955 100644 --- a/renren-admin/src/main/resources/logback-spring.xml +++ b/renren-admin/src/main/resources/logback-spring.xml @@ -1,21 +1,66 @@ - + + + + - + + + + + ${LOG_HOME}/service.log + + ${LOG_HOME}/service.%d{yyyy-MM-dd}.%i.log + 120 + + 500MB + + + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50}[%L] - %msg%n + UTF-8 + + + + + ${LOG_HOME}/error.log + + ${LOG_HOME}/error.%d{yyyy-MM-dd}.%i.log + 120 + + 500MB + + + + + ERROR + + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50}[%L] - %msg%n + UTF-8 + + - - + + - - - + + + + + + + + + + \ No newline at end of file