| FileTargetDeleteOldFileOnStartup Property |
Gets or sets a value indicating whether to delete old log file on startup.
Namespace:
NLog.Targets
Assembly:
NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax public bool DeleteOldFileOnStartup { get; set; }
Public Property DeleteOldFileOnStartup As Boolean
Get
Set
Dim instance As FileTarget
Dim value As Boolean
value = instance.DeleteOldFileOnStartup
instance.DeleteOldFileOnStartup = value
member DeleteOldFileOnStartup : bool with get, set
Property Value
Type:
BooleanRemarks
This option works only when the "FileName" parameter denotes a single file.
See Also