using log4net; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NFine.Data.Extensions { public class LogHelper { private ILog logger; public LogHelper(ILog log) { this.logger = log; } public void Error(object message) { this.logger.Error(message); DbResultMsg.ReturnMsg = message.ToString(); } public void Error(object message, Exception e) { this.logger.Error(message, e); DbResultMsg.ReturnMsg = message.ToString(); } } }