NLog.LogFactory.ReconfigExistingLoggers C# (CSharp) Method

ReconfigExistingLoggers() public method

Loops through all loggers previously returned by GetLogger and recalculates their target and filter list. Useful after modifying the configuration programmatically to ensure that all loggers have been properly configured.
public ReconfigExistingLoggers ( ) : void
return void
        public void ReconfigExistingLoggers()
        {
            this.ReconfigExistingLoggers(this.config);
        }

Same methods

LogFactory::ReconfigExistingLoggers ( LoggingConfiguration configuration ) : void

Usage Example

コード例 #1
0
 /// <summary>
 /// Loops through all loggers previously returned by GetLogger.
 /// and recalculates their target and filter list. Useful after modifying the configuration programmatically
 /// to ensure that all loggers have been properly configured.
 /// </summary>
 public static void ReconfigExistingLoggers()
 {
     factory.ReconfigExistingLoggers();
 }
All Usage Examples Of NLog.LogFactory::ReconfigExistingLoggers