Click or drag to resize

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: 5.5.0+1873145cbc26e0312d9481234d69ce7dc68aac4e
Syntax
public static void ReconfigExistingLoggers(
	bool purgeObsoleteLoggers
)

Parameters

purgeObsoleteLoggers
Type: SystemBoolean
Purge garbage collected logger-items from the cache
See Also