1
0
mirror of https://gitee.com/incloudcode/yexuejc-springboot.git synced 2025-08-05 18:19:30 +08:00

1.1.3 日志优化

This commit is contained in:
maxf 2018-10-27 16:41:16 +08:00
parent d01690dffb
commit 5bf66c25ca
4 changed files with 31 additions and 2 deletions

View File

@ -1,6 +1,34 @@
yexuejc-springboot 更新内容
-------------------
#### version 1.1.3
**time2018-10-27 16:40:36** <br/>
**branch** master <br/>
**关联工程:** <br/>
```
springboot-base:1.1.9
spring-boot-starter-parent:1.5.16.RELEASE
```
**update** <br/>
1. 日志优化,按天切割日志<br>
内置 <br>
LogUtil.accessLogger.info(xxxx);请求访问控制级别info[LogInterceptor->line39](com.yexuejc.springboot.base.interceptor.LogInterceptor)<br>
LogUtil.bizLogger.info(xxxx); 业务日志级别trace<br>
LogUtil.exceptionLogger.error(xxxx);异常日志级别error<br>
```$xslt
日志配置置于application.properties
详情参考 logback-spring.xml
#日志contextName
spring.application.name=@pom.artifactId@
#日志级别
logging.level.root=info
#日志输出目录
logging.path=/logs/yexuejc-springboot-parent
```
#
#### version 1.1.2
**time2018-9-28 15:23:32** <br/>
**branch** master <br/>

View File

@ -5,7 +5,7 @@
<groupId>com.yexuejc.springboot</groupId>
<artifactId>yexuejc-springboot-parent</artifactId>
<version>1.1.2</version>
<version>1.1.3</version>
<packaging>pom</packaging>
<name>${project.artifactId}</name>

View File

@ -9,7 +9,7 @@
<parent>
<groupId>com.yexuejc.springboot</groupId>
<artifactId>yexuejc-springboot-parent</artifactId>
<version>1.1.2</version>
<version>1.1.3</version>
<!-- 本地打包:使用相对关联路径 -->
<!--<relativePath>../../yexuejc</relativePath>-->
</parent>

View File

@ -35,4 +35,5 @@ public class LogUtil {
}
return msg.replaceAll(";", "_");
}
}