2.0.2 日志优化
This commit is contained in:
parent
dbda80cc77
commit
8a95b51761
28
UPDATE.md
28
UPDATE.md
|
@ -1,6 +1,34 @@
|
|||
yexuejc-springboot 更新内容
|
||||
-------------------
|
||||
|
||||
#### version :2.0.2
|
||||
**time:2018-10-27 16:42:08** <br/>
|
||||
**branch:** master <br/>
|
||||
**关联工程:** <br/>
|
||||
```
|
||||
springboot-base:1.2.0
|
||||
spring-boot-starter-parent:2.0.5.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 :2.0.1
|
||||
**time:2018-9-28 15:25:30** <br/>
|
||||
**branch:** 2.x <br/>
|
||||
|
|
4
pom.xml
4
pom.xml
|
@ -5,7 +5,7 @@
|
|||
|
||||
<groupId>com.yexuejc.springboot</groupId>
|
||||
<artifactId>yexuejc-springboot-parent</artifactId>
|
||||
<version>2.0.1</version>
|
||||
<version>2.0.2</version>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<name>${project.artifactId}</name>
|
||||
|
@ -20,7 +20,7 @@
|
|||
</parent>
|
||||
|
||||
<properties>
|
||||
<yexuejc.base.version>1.1.9</yexuejc.base.version>
|
||||
<yexuejc.base.version>1.2.0</yexuejc.base.version>
|
||||
<repos.yexuejc.url>https://nexus.yexuejc.club/repository/</repos.yexuejc.url>
|
||||
|
||||
<repos.aliyun.url>http://maven.aliyun.com/nexus/content/groups/public</repos.aliyun.url>
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<parent>
|
||||
<groupId>com.yexuejc.springboot</groupId>
|
||||
<artifactId>yexuejc-springboot-parent</artifactId>
|
||||
<version>2.0.1</version>
|
||||
<version>2.0.2</version>
|
||||
<!-- 本地打包:使用相对关联路径 -->
|
||||
<!--<relativePath>../../yexuejc</relativePath>-->
|
||||
</parent>
|
||||
|
|
Loading…
Reference in New Issue