增加一个日志方法
This commit is contained in:
		
							parent
							
								
									9a200420a9
								
							
						
					
					
						commit
						fd59272e23
					
				@ -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>
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user