spy文件格式变更,统一切换成yaml

This commit is contained in:
lematechvip 2024-01-12 20:47:38 +08:00 committed by He Xinrong
parent 4142295ee1
commit b7204e82ff
2 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,18 @@
# 相关的包
modulelist: "com.baomidou.mybatisplus.extension.p6spy.MybatisPlusLogFactory,com.p6spy.engine.outage.P6OutageFactory"
# 日志格式
logMessageFormat: "com.baomidou.mybatisplus.extension.p6spy.P6SpyLogger"
# 日志输出到控制台
appender: "com.p6spy.engine.spy.appender.StdoutLogger"
# 设置 p6spy driver 代理
deregisterdrivers: true
# 取消JDBC URL前缀
useprefix: true
# 配置记录 Log 例外,可去掉的结果集有error,info,batch,debug,statement,commit,rollback,result,resultset.
excludecategories: "info,debug,result,commit,resultset"
# 日期格式
dateformat: "yyyy-MM-dd HH:mm:ss"
# 开启慢sql
outagedetection: true
# 慢SQL记录标准单位秒
outagedetectioninterval: 2

View File

@ -0,0 +1,18 @@
# 相关的包
modulelist: com.baomidou.mybatisplus.extension.p6spy.MybatisPlusLogFactory,com.p6spy.engine.outage.P6OutageFactory
# 日志格式
logMessageFormat: com.baomidou.mybatisplus.extension.p6spy.P6SpyLogger
# 日志输出到控制台
appender: com.p6spy.engine.spy.appender.StdoutLogger
# 设置 p6spy driver 代理
deregisterdrivers: true
# 取消JDBC URL前缀
useprefix: true
# 配置记录 Log 例外,可去掉的结果集有error,info,batch,debug,statement,commit,rollback,result,resultset.
excludecategories: info,debug,result,commit,resultset
# 日期格式
dateformat: yyyy-MM-dd HH:mm:ss
# 开启慢sql
outagedetection: true
# 慢SQL记录标准单位秒
outagedetectioninterval: 2