 | LogManagerReconfigExistingLoggers Method (Boolean) |
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.
Namespace:
NLog
Assembly:
NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntaxpublic static void ReconfigExistingLoggers(
bool purgeObsoleteLoggers
)
Public Shared Sub ReconfigExistingLoggers (
purgeObsoleteLoggers As Boolean
)
Dim purgeObsoleteLoggers As Boolean
LogManager.ReconfigExistingLoggers(purgeObsoleteLoggers)
static member ReconfigExistingLoggers :
purgeObsoleteLoggers : bool -> unit
Parameters
- purgeObsoleteLoggers
- Type: SystemBoolean
Purge garbage collected logger-items from the cache
See Also