Esempio n. 1
0
 /// <summary>
 /// Writes the log exception.
 /// </summary>
 /// <param name="owner">The owner.</param>
 /// <param name="ex">The ex.</param>
 public static void WriteLogException(this DisposableObjectLogger owner, Exception ex)
 {
     if (owner.Logger == null)
     {
         return;
     }
     owner.Logger.WriteLogException(ex);
 }
Esempio n. 2
0
 /// <summary>
 /// Writes the raw message.
 /// </summary>
 /// <param name="owner">The owner.</param>
 /// <param name="message">The message.</param>
 public static void WriteLogRawMessage(this DisposableObjectLogger owner, string message)
 {
     if (owner.Logger == null)
     {
         return;
     }
     owner.Logger.WriteLogRawMessage(message);
 }
Esempio n. 3
0
 /// <summary>
 /// Writes the log exception.
 /// </summary>
 /// <param name="owner">The owner.</param>
 /// <param name="procedureName">Name of the procedure.</param>
 /// <param name="ex">The ex.</param>
 public static void WriteLogException(this DisposableObjectLogger owner, string procedureName, Exception ex)
 {
     if (owner.Logger == null)
     {
         return;
     }
     owner.Logger.WriteLogException(procedureName, ex);
 }
Esempio n. 4
0
 /// <summary>
 /// Writes the log exception.
 /// </summary>
 /// <param name="owner">The owner.</param>
 /// <param name="proc">Module procedure name.</param>
 /// <param name="message">The message.</param>
 public static void WriteLogException(this DisposableObjectLogger owner, ModuleProc proc, string message)
 {
     if (owner.Logger == null)
     {
         return;
     }
     owner.Logger.WriteLogException(proc, message);
 }
Esempio n. 5
0
 /// <summary>
 /// Writes the log exception.
 /// </summary>
 /// <param name="owner">The owner.</param>
 /// <param name="moduleName">Name of the module.</param>
 /// <param name="procedureName">Name of the procedure.</param>
 /// <param name="ex">The ex.</param>
 /// <param name="extra">The extra.</param>
 public static void WriteLogException(this DisposableObjectLogger owner, string moduleName, string procedureName, Exception ex, object extra)
 {
     if (owner.Logger == null)
     {
         return;
     }
     owner.Logger.WriteLogException(moduleName, procedureName, ex, extra);
 }
Esempio n. 6
0
 /// <summary>
 /// Writes the log warning.
 /// </summary>
 /// <param name="owner">The owner.</param>
 /// <param name="procedureName">Name of the procedure.</param>
 /// <param name="message">The message.</param>
 public static void WriteLogWarning(this DisposableObjectLogger owner, string procedureName, string message)
 {
     if (owner.Logger == null)
     {
         return;
     }
     owner.Logger.WriteLogWarning(procedureName, message);
 }
Esempio n. 7
0
 /// <summary>
 /// Writes the log error.
 /// </summary>
 /// <param name="owner">The owner.</param>
 /// <param name="moduleName">Name of the module.</param>
 /// <param name="procedureName">Name of the procedure.</param>
 /// <param name="message">The message.</param>
 /// <param name="extra">The extra.</param>
 public static void WriteLogError(this DisposableObjectLogger owner, string moduleName, string procedureName, string message, object extra)
 {
     if (owner.Logger == null)
     {
         return;
     }
     owner.Logger.WriteLogError(moduleName, procedureName, message, extra);
 }
Esempio n. 8
0
 /// <summary>
 /// Writes the log exception.
 /// </summary>
 /// <param name="owner">The owner.</param>
 /// <param name="methodBase">The method base.</param>
 /// <param name="ex">The ex.</param>
 /// <param name="extra">The extra.</param>
 public static void WriteLogException(this DisposableObjectLogger owner, MethodBase methodBase, Exception ex, object extra)
 {
     if (owner.Logger == null)
     {
         return;
     }
     owner.Logger.WriteLogException(methodBase, ex, extra);
 }
Esempio n. 9
0
 /// <summary>
 /// Writes the log warning.
 /// </summary>
 /// <param name="owner">The owner.</param>
 /// <param name="methodBase">The method base.</param>
 /// <param name="message">The message.</param>
 /// <param name="extra">The extra.</param>
 public static void WriteLogWarning(this DisposableObjectLogger owner, MethodBase methodBase, string message, object extra)
 {
     if (owner.Logger == null)
     {
         return;
     }
     owner.Logger.WriteLogWarning(methodBase, message, extra);
 }
Esempio n. 10
0
 /// <summary>
 /// Writes the log exception.
 /// </summary>
 /// <param name="owner">The owner.</param>
 /// <param name="methodBase">The method base.</param>
 /// <param name="message">The message.</param>
 public static void WriteLogException(this DisposableObjectLogger owner, MethodBase methodBase, string message)
 {
     if (owner.Logger == null)
     {
         return;
     }
     owner.Logger.WriteLogException(methodBase, message);
 }
Esempio n. 11
0
 /// <summary>
 /// Writes the log exception.
 /// </summary>
 /// <param name="message">The message.</param>
 /// <param name="extra">The extra.</param>
 public static void WriteLogException(this DisposableObjectLogger owner, string message, object extra)
 {
     if (owner.Logger == null)
     {
         return;
     }
     owner.Logger.WriteLogException(message, extra);
 }