Browse Source

fix log

zyh
Loki 3 years ago
parent
commit
f77d753264
  1. 10
      yudao-server/src/main/resources/application-local.yaml
  2. 6
      yudao-server/src/main/resources/logback-spring.xml
  3. 27
      yudao-server/src/main/resources/spy.properties
  4. 2
      yudao-ui-admin

10
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:

6
yudao-server/src/main/resources/logback-spring.xml

@ -65,6 +65,12 @@
</encoder>
</appender>
<!--myibatis log configure -->
<logger name="com.apache.ibatis" level="TRACE" />
<logger name="java.sql.Connection" level="DEBUG" />
<logger name="java.sql.Statement" level="DEBUG" />
<logger name="java.sql.PreparedStatement" level="DEBUG" />
<!-- 本地环境 -->
<springProfile name="local">
<root level="INFO">

27
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 秒
# ?SQL???? 2 ?
outagedetectioninterval=2
filter=true
exclude=QRTZ_,ACT_,

2
yudao-ui-admin

@ -1 +1 @@
Subproject commit 940f54e876f1c6ccc6e239c5990d34e83fb02b78
Subproject commit beb44f8aa54a4e20a48985d771a0353641df4787
Loading…
Cancel
Save