Flush() public method

Flush any pending log messages (in case of asynchronous targets).
public Flush ( ) : void
return void
Esempio n. 1
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();
         }
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Flush any pending log messages (in case of asynchronous targets).
 /// </summary>
 public static void Flush()
 {
     factory.Flush();
 }
Esempio n. 3
0
/// <summary>
/// Flush any pending log messages (in case of asynchronous targets).
/// </summary>
        public static void Flush()
        {
            globalFactory.Flush();
        }