Click or drag to resize

FileTargetCleanupInitializedFiles Method (DateTime)

Removes records of initialized files that have not been accessed after the specified date.

Namespace:  NLog.Targets
Assembly:  NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax
public void CleanupInitializedFiles(
	DateTime cleanupThreshold
)

Parameters

cleanupThreshold
Type: SystemDateTime
The cleanup threshold.
Remarks
Files are marked 'initialized' for the purpose of writing footers when the logging finishes.
See Also