public static void Exception(string message, Exception exception) { //YGOP.ESB.Log.LogManager.WriteFatal(message,exception); Instance.Error(message, exception); JnsLog.Exception(exception, message); if (OnLogged != null) { OnLogged(null, new LogEventArgs(message, LogLevel.Warn, exception)); } }
/// <summary> /// Log Exception /// </summary> /// <remarks>overload by Wayne 2012-12-09</remarks> /// <param name="exception">exception to log.</param> public static void Exception(Exception exception) { Instance.Error(string.Format("【QMS异常】{0}", exception.Message), exception); JnsLog.Exception(exception); }