From b7204e82ff827c3516ebd11eb3dfda649d245b4c Mon Sep 17 00:00:00 2001 From: lematechvip Date: Fri, 12 Jan 2024 20:47:38 +0800 Subject: [PATCH 1/2] =?UTF-8?q?spy=E6=96=87=E4=BB=B6=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=E5=8F=98=E6=9B=B4=EF=BC=8C=E7=BB=9F=E4=B8=80=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E6=88=90yaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sa-admin/src/main/resources/dev/spy.yml | 18 ++++++++++++++++++ .../sa-admin/src/main/resources/test/spy.yml | 18 ++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 smart-admin-api/sa-admin/src/main/resources/dev/spy.yml create mode 100644 smart-admin-api/sa-admin/src/main/resources/test/spy.yml diff --git a/smart-admin-api/sa-admin/src/main/resources/dev/spy.yml b/smart-admin-api/sa-admin/src/main/resources/dev/spy.yml new file mode 100644 index 00000000..59fb797a --- /dev/null +++ b/smart-admin-api/sa-admin/src/main/resources/dev/spy.yml @@ -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 diff --git a/smart-admin-api/sa-admin/src/main/resources/test/spy.yml b/smart-admin-api/sa-admin/src/main/resources/test/spy.yml new file mode 100644 index 00000000..197f131e --- /dev/null +++ b/smart-admin-api/sa-admin/src/main/resources/test/spy.yml @@ -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 From 0510353256f42fe3384b4afbaf861aec30f90781 Mon Sep 17 00:00:00 2001 From: lematechvip Date: Fri, 12 Jan 2024 20:53:16 +0800 Subject: [PATCH 2/2] =?UTF-8?q?spy=E6=96=87=E4=BB=B6=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=E5=8F=98=E6=9B=B4=EF=BC=8C=E7=BB=9F=E4=B8=80=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E6=88=90yaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/dev/spy.properties | 18 ------------------ .../src/main/resources/test/spy.properties | 18 ------------------ 2 files changed, 36 deletions(-) delete mode 100644 smart-admin-api/sa-admin/src/main/resources/dev/spy.properties delete mode 100644 smart-admin-api/sa-admin/src/main/resources/test/spy.properties diff --git a/smart-admin-api/sa-admin/src/main/resources/dev/spy.properties b/smart-admin-api/sa-admin/src/main/resources/dev/spy.properties deleted file mode 100644 index 667e1ea1..00000000 --- a/smart-admin-api/sa-admin/src/main/resources/dev/spy.properties +++ /dev/null @@ -1,18 +0,0 @@ -#相关的包 -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 \ No newline at end of file diff --git a/smart-admin-api/sa-admin/src/main/resources/test/spy.properties b/smart-admin-api/sa-admin/src/main/resources/test/spy.properties deleted file mode 100644 index 667e1ea1..00000000 --- a/smart-admin-api/sa-admin/src/main/resources/test/spy.properties +++ /dev/null @@ -1,18 +0,0 @@ -#相关的包 -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 \ No newline at end of file