diff --git a/yexuejc-springboot-base/src/main/java/com/yexuejc/springboot/base/util/LogUtil.java b/yexuejc-springboot-base/src/main/java/com/yexuejc/springboot/base/util/LogUtil.java index 267c4e0..b9f747b 100644 --- a/yexuejc-springboot-base/src/main/java/com/yexuejc/springboot/base/util/LogUtil.java +++ b/yexuejc-springboot-base/src/main/java/com/yexuejc/springboot/base/util/LogUtil.java @@ -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"); /** * 格式化日志消息(将;替换为_) diff --git a/yexuejc-springboot-base/src/test/resources/application.properties b/yexuejc-springboot-base/src/test/resources/application.properties index 3e03b4e..fba6a7e 100644 --- a/yexuejc-springboot-base/src/test/resources/application.properties +++ b/yexuejc-springboot-base/src/test/resources/application.properties @@ -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