using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AUTS.Log4Net { /// /// 一般操作产生的日志 /// public class ExceptionLogHelper { public static void Log(ExceptionLogMessage logMessage) { var log = LoggerFactory.CreateInstance(Log4NetType.Exception.ToString()); if (log.IsErrorEnabled) { log.Error(logMessage); } } public static void Log(ExceptionLogMessage logMessage, Exception exception) { var log = LoggerFactory.CreateInstance(Log4NetType.Exception.ToString()); if (log.IsErrorEnabled) { log.Error(logMessage, exception); } } } }