/// <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); } }
/// <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); } }
/// <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); } }
/// <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); } }
/// <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); } }