Esempio n. 1
0
 public static void Warning(int eventId, string message)
 {
     log = Library.Logging.LogManager.GetLogger(String.Empty);
     if (log.IsWarnEnabled)
     {
         log.Warn(eventId, message);
     }
 }
Esempio n. 2
0
 public static void Warning(int eventId, Exception exception)
 {
     log = Library.Logging.LogManager.GetLogger(String.Empty);
     if (log.IsWarnEnabled)
     {
         log.Warn(eventId, exception.Message, exception);
     }
 }
Esempio n. 3
0
 /// <summary>
 /// Helper methods to log a ExternalSystemInformation with
 /// the stack trace of the <see cref="Exception"/> passed
 /// as a parameter.
 /// </summary>
 /// <param name="exception">The exception to log, including its stack trace.</param>
 public static void ExternalSystemInformation(Exception exception)
 {
     log = Library.Logging.LogManager.GetLogger(String.Empty);
     if (log.IsExternalSystemInformationEnabled)
     {
         log.ExternalSystemInformation(exception.Message, exception);
     }
 }
Esempio n. 4
0
 /// <summary>
 /// Helper methods to log a trace message
 /// </summary>
 /// <param name="message">The message string to log.</param>
 public static void Trace(string message)
 {
     log = Library.Logging.LogManager.GetLogger(String.Empty);
     if (log.IsDebugEnabled)
     {
         log.Trace(message);
     }
 }
Esempio n. 5
0
 public static void Fatal(int eventId, string message)
 {
     log = Library.Logging.LogManager.GetLogger(String.Empty);
     if (log.IsFatalEnabled)
     {
         log.Fatal(eventId, message);
     }
 }
Esempio n. 6
0
 /// <summary>
 /// Helper methods to log a ExternalSystemInformation message including
 /// the stack trace of the <see cref="Exception"/> passed
 /// as a parameter.
 /// </summary>
 /// <param name="type">The object <paramref name="type"/> will be used for the logger. Ex. System.Reflection.MethodBase.GetCurrentMethod().DeclaringType, typeOf(Classname) or this.GetType();</param>
 /// <param name="exception">The exception to log, including its stack trace.</param>
 /// <param name="message">The message string to log.</param>
 public static void ExternalSystemInformation(string type, Exception exception, string message)
 {
     log = Library.Logging.LogManager.GetLogger(type);
     if (log.IsExternalSystemInformationEnabled)
     {
         log.ExternalSystemInformation(message, exception);
     }
 }
Esempio n. 7
0
 /// <summary>
 /// Helper methods to log a Information message including
 /// the stack trace of the <see cref="Exception"/> passed
 /// as a parameter.
 /// </summary>
 /// <param name="type">The object <paramref name="type"/> will be used for the logger. Ex. System.Reflection.MethodBase.GetCurrentMethod().DeclaringType, typeOf(Classname) or this.GetType();</param>
 /// <param name="exception">The exception to log, including its stack trace.</param>
 /// <param name="message">The message string to log.</param>
 public static void Information(string type, Exception exception, string message)
 {
     log = Library.Logging.LogManager.GetLogger(type);
     if (log.IsInfoEnabled)
     {
         log.Info(message, exception);
     }
 }
Esempio n. 8
0
 public static void Error(int eventId, Exception exception, string message)
 {
     log = Library.Logging.LogManager.GetLogger(String.Empty);
     if (log.IsErrorEnabled)
     {
         log.Error(eventId, message, exception);
     }
 }
Esempio n. 9
0
 public static void BusinessError(int eventId, Exception exception)
 {
     log = Library.Logging.LogManager.GetLogger(String.Empty);
     if (log.IsBusinessErrorEnabled)
     {
         log.BusinessError(eventId, exception.Message, exception);
     }
 }
Esempio n. 10
0
 /// <summary>
 /// Helper methods to log a Information message
 /// </summary>
 /// <param name="type">The object <paramref name="type"/> will be used for the logger. Ex. typeOf(Classname) or this.GetType();</param>
 /// <param name="message">The message string to log.</param>
 public static void Information(Type type, string message)
 {
     log = Library.Logging.LogManager.GetLogger(type);
     if (log.IsInfoEnabled)
     {
         log.Info(message);
     }
 }
Esempio n. 11
0
 public static void BusinessError(int eventId, string message)
 {
     log = Library.Logging.LogManager.GetLogger(String.Empty);
     if (log.IsBusinessErrorEnabled)
     {
         log.BusinessError(eventId, message);
     }
 }
Esempio n. 12
0
 public static void BusinessError(int eventId, string type, Exception exception, string message)
 {
     log = Library.Logging.LogManager.GetLogger(type);
     if (log.IsBusinessErrorEnabled)
     {
         log.BusinessError(eventId, message, exception);
     }
 }
Esempio n. 13
0
 /// <summary>
 /// Helper methods to log a trace with
 /// the stack trace of the <see cref="Exception"/> passed
 /// as a parameter.
 /// </summary>
 /// <param name="exception">The exception to log, including its stack trace.</param>
 public static void Trace(Exception exception)
 {
     log = Library.Logging.LogManager.GetLogger(String.Empty);
     if (log.IsDebugEnabled)
     {
         log.Trace(exception.Message, exception);
     }
 }
Esempio n. 14
0
 public static void Error(int eventId, string type, string message)
 {
     log = Library.Logging.LogManager.GetLogger(type);
     if (log.IsErrorEnabled)
     {
         log.Error(eventId, message);
     }
 }
Esempio n. 15
0
 /// <summary>
 /// Helper methods to log a Information with
 /// the stack trace of the <see cref="Exception"/> passed
 /// as a parameter.
 /// </summary>
 /// <param name="type">The object <paramref name="type"/> will be used for the logger. Ex. typeOf(Classname) or this.GetType();</param>
 /// <param name="exception">The exception to log, including its stack trace.</param>
 public static void Information(Type type, Exception exception)
 {
     log = Library.Logging.LogManager.GetLogger(type);
     if (log.IsInfoEnabled)
     {
         log.Info(exception.Message, exception);
     }
 }
Esempio n. 16
0
 public static void Error(int eventId, string type, Exception exception)
 {
     log = Library.Logging.LogManager.GetLogger(type);
     if (log.IsErrorEnabled)
     {
         log.Error(eventId, exception.Message, exception);
     }
 }
Esempio n. 17
0
 /// <summary>
 /// Helper methods to log a Information message
 /// </summary>
 /// <param name="message">The message string to log.</param>
 public static void Information(string message)
 {
     log = Library.Logging.LogManager.GetLogger(String.Empty);
     if (log.IsInfoEnabled)
     {
         log.Info(message);
     }
 }
Esempio n. 18
0
 public static void Fatal(int eventId, string type, Exception exception, string message)
 {
     log = Library.Logging.LogManager.GetLogger(type);
     if (log.IsFatalEnabled)
     {
         log.Fatal(eventId, message, exception);
     }
 }
Esempio n. 19
0
 /// <summary>
 /// Helper methods to log a trace message
 /// </summary>
 /// <param name="type">The object <paramref name="type"/> will be used for the logger. Ex. System.Reflection.MethodBase.GetCurrentMethod().DeclaringType, typeOf(Classname) or this.GetType();</param>
 /// <param name="message">The message string to log.</param>
 public static void Trace(Type type, string message)
 {
     log = Library.Logging.LogManager.GetLogger(type);
     if (log.IsDebugEnabled)
     {
         log.Trace(message);
     }
 }
Esempio n. 20
0
 public static void Fatal(int eventId, Exception exception)
 {
     log = Library.Logging.LogManager.GetLogger(String.Empty);
     if (log.IsFatalEnabled)
     {
         log.Fatal(eventId, exception.Message, exception);
     }
 }
Esempio n. 21
0
 /// <summary>
 /// Helper methods to log a Information with
 /// the stack trace of the <see cref="Exception"/> passed
 /// as a parameter.
 /// </summary>
 /// <param name="exception">The exception to log, including its stack trace.</param>
 public static void Information(Exception exception)
 {
     log = Library.Logging.LogManager.GetLogger(String.Empty);
     if (log.IsInfoEnabled)
     {
         log.Info(exception.Message, exception);
     }
 }
Esempio n. 22
0
 /// <summary>
 /// Helper methods to log a ExternalSystemInformation message
 /// </summary>
 /// <param name="message">The message string to log.</param>
 public static void ExternalSystemInformation(string message)
 {
     log = Library.Logging.LogManager.GetLogger(String.Empty);
     if (log.IsExternalSystemInformationEnabled)
     {
         log.ExternalSystemInformation(message);
     }
 }
Esempio n. 23
0
 public static void Warning(int eventId, Type type, Exception exception, string message)
 {
     log = Library.Logging.LogManager.GetLogger(type);
     if (log.IsWarnEnabled)
     {
         log.Warn(eventId, message, exception);
     }
 }
Esempio n. 24
0
 /// <summary>
 /// Helper methods to log a trace message including
 /// the stack trace of the <see cref="Exception"/> passed
 /// as a parameter.
 /// </summary>
 /// <param name="type">The object <paramref name="type"/> will be used for the logger. Ex. System.Reflection.MethodBase.GetCurrentMethod().DeclaringType, typeOf(Classname) or this.GetType();</param>
 /// <param name="exception">The exception to log, including its stack trace.</param>
 /// <param name="message">The message string to log.</param>
 public static void Trace(string type, Exception exception, string message)
 {
     log = Library.Logging.LogManager.GetLogger(type);
     if (log.IsDebugEnabled)
     {
         log.Trace(message, exception);
     }
 }
Esempio n. 25
0
 /// <summary>
 /// Helper methods to log a trace with
 /// the stack trace of the <see cref="Exception"/> passed
 /// as a parameter.
 /// </summary>
 /// <param name="type">The object <paramref name="type"/> will be used for the logger. Ex. typeOf(Classname) or this.GetType();</param>
 /// <param name="exception">The exception to log, including its stack trace.</param>
 public static void Trace(Type type, Exception exception)
 {
     log = Library.Logging.LogManager.GetLogger(type);
     if (log.IsDebugEnabled)
     {
         log.Trace(exception.Message, exception);
     }
 }