Esempio n. 1
0
 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));
     }
 }
Esempio n. 2
0
        public static void Error(string message)
        {
            message = string.Format("【QMS异常】{0}", message);
            Instance.Error(message);

            JnsLog.Error(message);
            if (OnLogged != null)
            {
                OnLogged(null, new LogEventArgs(message, LogLevel.Error));
            }
        }
Esempio n. 3
0
 /// <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);
 }