mirror of
https://gitee.com/incloudcode/yexuejc-springboot.git
synced 2025-07-17 17:27:26 +08:00
日志优化
This commit is contained in:
parent
7b7dbac052
commit
5a29aed20a
@ -13,15 +13,15 @@ public class LogUtil {
|
||||
/**
|
||||
* 用于记录访问日志,输出到access.log
|
||||
*/
|
||||
public final static Logger accessLogger = LoggerFactory.getLogger("com.yexuejc.uselaw.access");
|
||||
public final static Logger accessLogger = LoggerFactory.getLogger("access");
|
||||
/**
|
||||
* 用于记录业务日志,输出到biz.log
|
||||
*/
|
||||
public final static Logger bizLogger = LoggerFactory.getLogger("com.yexuejc.uselaw.biz");
|
||||
public final static Logger bizLogger = LoggerFactory.getLogger("biz");
|
||||
/**
|
||||
* 用于记录程序异常日志,输出到exception.log
|
||||
*/
|
||||
public final static Logger exceptionLogger = LoggerFactory.getLogger("com.yexuejc.uselaw.exception");
|
||||
public final static Logger exceptionLogger = LoggerFactory.getLogger("exception");
|
||||
|
||||
/**
|
||||
* 格式化日志消息(将;替换为_)
|
||||
|
@ -1,7 +1,8 @@
|
||||
server.port=8888
|
||||
logging.level.root=info
|
||||
|
||||
security.basic.enabled=false
|
||||
logging.level.root=info
|
||||
logging.path=/logs/yexuejc-springboot-parent
|
||||
|
||||
|
||||
yexuejc.http.filter.type=0
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user