From f77d753264eadb564854179af40c63cbb9371c6d Mon Sep 17 00:00:00 2001 From: Loki <654612@qq.com> Date: Mon, 20 Jun 2022 13:42:46 +0800 Subject: [PATCH] fix log --- .../src/main/resources/application-local.yaml | 10 +++---- .../src/main/resources/logback-spring.xml | 6 ++++ .../src/main/resources/spy.properties | 29 ++++++++++--------- yudao-ui-admin | 2 +- 4 files changed, 27 insertions(+), 20 deletions(-) diff --git a/yudao-server/src/main/resources/application-local.yaml b/yudao-server/src/main/resources/application-local.yaml index cd0e18ce..d0958be4 100644 --- a/yudao-server/src/main/resources/application-local.yaml +++ b/yudao-server/src/main/resources/application-local.yaml @@ -164,15 +164,13 @@ logging: name: logs/${spring.application.name}.log # 日志文件名,全路径 level: # 配置自己写的 MyBatis Mapper 打印日志 - cn.iocoder.yudao.module.bpm.dal.mysql: debug - cn.iocoder.yudao.module.infra.dal.mysql: debug - cn.iocoder.yudao.module.pay.dal.mysql: debug - cn.iocoder.yudao.module.system.dal.mysql: debug - cn.iocoder.yudao.module.tool.dal.mysql: debug - cn.iocoder.yudao.module.member.dal.mysql: debug + cn.iocoder.yudao: info co.yixiang: debug org.quartz: error +mybatis-plus: + configuration: + log-impl: org.apache.ibatis.logging.nologging.NoLoggingImpl --- #################### 微信公众号相关配置 #################### wx: # 参见 https://github.com/Wechat-Group/WxJava/blob/develop/spring-boot-starters/wx-java-mp-spring-boot-starter/README.md 文档 mp: diff --git a/yudao-server/src/main/resources/logback-spring.xml b/yudao-server/src/main/resources/logback-spring.xml index f4c061b3..e95be020 100644 --- a/yudao-server/src/main/resources/logback-spring.xml +++ b/yudao-server/src/main/resources/logback-spring.xml @@ -65,6 +65,12 @@ + + + + + + diff --git a/yudao-server/src/main/resources/spy.properties b/yudao-server/src/main/resources/spy.properties index af0bb2a7..663dcda0 100644 --- a/yudao-server/src/main/resources/spy.properties +++ b/yudao-server/src/main/resources/spy.properties @@ -1,24 +1,27 @@ -#3.2.1以上使用 +#3.2.1???? modulelist=com.baomidou.mybatisplus.extension.p6spy.MybatisPlusLogFactory,com.p6spy.engine.outage.P6OutageFactory -#3.2.1以下使用或者不配置 +#3.2.1????????? #modulelist=com.p6spy.engine.logging.P6LogFactory,com.p6spy.engine.outage.P6OutageFactory -# 自定义日志打印 +# ??????? logMessageFormat=com.baomidou.mybatisplus.extension.p6spy.P6SpyLogger -#日志输出到控制台 +#???????? appender=com.baomidou.mybatisplus.extension.p6spy.StdoutLogger -# 使用日志系统记录 sql +# ???????? sql #appender=com.p6spy.engine.spy.appender.Slf4JLogger -# 设置 p6spy driver 代理 +# ?? p6spy driver ?? deregisterdrivers=true -# 取消JDBC URL前缀 +# ??JDBC URL?? useprefix=true -# 配置记录 Log 例外,可去掉的结果集有error,info,batch,debug,statement,commit,rollback,result,resultset. +# ???? Log ??,????????error,info,batch,debug,statement,commit,rollback,result,resultset. excludecategories=info,debug,result,commit,resultset -# 日期格式 +# ???? dateformat=yyyy-MM-dd HH:mm:ss -# 实际驱动可多个 +# ??????? #driverlist=org.h2.Driver -# 是否开启慢SQL记录 +# ?????SQL?? outagedetection=true -# 慢SQL记录标准 2 秒 -outagedetectioninterval=2 \ No newline at end of file +# ?SQL???? 2 ? +outagedetectioninterval=2 + +filter=true +exclude=QRTZ_,ACT_, \ No newline at end of file diff --git a/yudao-ui-admin b/yudao-ui-admin index 940f54e8..beb44f8a 160000 --- a/yudao-ui-admin +++ b/yudao-ui-admin @@ -1 +1 @@ -Subproject commit 940f54e876f1c6ccc6e239c5990d34e83fb02b78 +Subproject commit beb44f8aa54a4e20a48985d771a0353641df4787