예제 #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);
 }
예제 #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);
 }
예제 #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);
 }
예제 #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);
 }
예제 #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);
 }
예제 #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);
 }
예제 #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);
 }
예제 #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);
 }
예제 #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);
 }
예제 #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);
 }
예제 #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);
 }