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