| 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
)
Public Sub CleanupInitializedFiles (
cleanupThreshold As DateTime
)
Dim instance As FileTarget
Dim cleanupThreshold As DateTime
instance.CleanupInitializedFiles(cleanupThreshold)
member CleanupInitializedFiles :
cleanupThreshold : DateTime -> unit
Parameters
- cleanupThreshold
- Type: SystemDateTime
The cleanup threshold.
Remarks
Files are marked 'initialized' for the purpose of writing footers when the logging finishes.
See Also