mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-09-18 19:36:39 +08:00
spy文件格式变更,统一切换成yaml
This commit is contained in:
parent
4142295ee1
commit
b7204e82ff
18
smart-admin-api/sa-admin/src/main/resources/dev/spy.yml
Normal file
18
smart-admin-api/sa-admin/src/main/resources/dev/spy.yml
Normal 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
|
18
smart-admin-api/sa-admin/src/main/resources/test/spy.yml
Normal file
18
smart-admin-api/sa-admin/src/main/resources/test/spy.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user