Example #1
0
 public static void Warning(int eventId, string message)
 {
     log = Library.Logging.LogManager.GetLogger(String.Empty);
     if (log.IsWarnEnabled)
     {
         log.Warn(eventId, message);
     }
 }
Example #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);
     }
 }
Example #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);
     }
 }
Example #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);
     }
 }
Example #5
0
 public static void Fatal(int eventId, string message)
 {
     log = Library.Logging.LogManager.GetLogger(String.Empty);
     if (log.IsFatalEnabled)
     {
         log.Fatal(eventId, message);
     }
 }
Example #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);
     }
 }
Example #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);
     }
 }
Example #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);
     }
 }
Example #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);
     }
 }
Example #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);
     }
 }
Example #11
0
 public static void BusinessError(int eventId, string message)
 {
     log = Library.Logging.LogManager.GetLogger(String.Empty);
     if (log.IsBusinessErrorEnabled)
     {
         log.BusinessError(eventId, message);
     }
 }
Example #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);
     }
 }
Example #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);
     }
 }
Example #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);
     }
 }
Example #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);
     }
 }
Example #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);
     }
 }
Example #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);
     }
 }
Example #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);
     }
 }
Example #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);
     }
 }
Example #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);
     }
 }
Example #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);
     }
 }
Example #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);
     }
 }
Example #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);
     }
 }
Example #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);
     }
 }
Example #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);
     }
 }