Flush() 공개 정적인 메소드

Flush any pending log messages (in case of asynchronous targets) with the default timeout of 15 seconds.
public static Flush ( ) : void
리턴 void
예제 #1
0
 /// <summary>
 /// Flushes the output buffer.
 /// </summary>
 public override void Flush()
 {
     if (this.LogFactory != null)
     {
         this.LogFactory.Flush();
     }
     else
     {
         LogManager.Flush();
     }
 }
예제 #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();
         }
     }
 }