From fd59272e232dc784f08be3f5139f9203f9b24d2d Mon Sep 17 00:00:00 2001 From: falcon <9504402@qq.com> Date: Mon, 26 Sep 2022 13:44:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=B8=80=E4=B8=AA=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Falcon.SugarApi/ApiDefinistions/ApiControllerBase.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Falcon.SugarApi/ApiDefinistions/ApiControllerBase.cs b/Falcon.SugarApi/ApiDefinistions/ApiControllerBase.cs index e2f000c..257a3ed 100644 --- a/Falcon.SugarApi/ApiDefinistions/ApiControllerBase.cs +++ b/Falcon.SugarApi/ApiDefinistions/ApiControllerBase.cs @@ -55,6 +55,12 @@ namespace Falcon.SugarApi.ApiDefinistions this.SugarDb = service.GetService() ?? throw new NullReferenceException("SugarDbContext"); } + /// + /// 保存文本日志 + /// + /// 日志文本 + protected virtual void SaveLogger(string msg) => this.Logger.LogInformation(msg); + /// /// 记录保存请求和响应日志 ///