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); + /// /// 记录保存请求和响应日志 ///