增加一个日志方法

This commit is contained in:
falcon 2022-09-26 13:44:27 +08:00
parent 9a200420a9
commit fd59272e23

View File

@ -55,6 +55,12 @@ namespace Falcon.SugarApi.ApiDefinistions
this.SugarDb = service.GetService<SugarDbContext>() ?? throw new NullReferenceException("SugarDbContext");
}
/// <summary>
/// 保存文本日志
/// </summary>
/// <param name="msg">日志文本</param>
protected virtual void SaveLogger(string msg) => this.Logger.LogInformation(msg);
/// <summary>
/// 记录保存请求和响应日志
/// </summary>