Flush() public static méthode

Flush any pending log messages (in case of asynchronous targets) with the default timeout of 15 seconds.
public static Flush ( ) : void
Résultat void
Exemple #1
0
 /// <summary>
 /// Flushes the output buffer.
 /// </summary>
 public override void Flush()
 {
     if (this.LogFactory != null)
     {
         this.LogFactory.Flush();
     }
     else
     {
         LogManager.Flush();
     }
 }
Exemple #2
0
 /// <summary>
 /// Flushes the output (if <see cref="DisableFlush"/> is not <c>true</c>) buffer with the default timeout of 15 seconds.
 /// </summary>
 public override void Flush()
 {
     if (!DisableFlush)
     {
         if (LogFactory != null)
         {
             LogFactory.Flush();
         }
         else
         {
             LogManager.Flush();
         }
     }
 }