 | 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: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntaxpublic 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:
Boolean
Remarks
Default: .
When current log-file exists, then it is deleted (and resetting sequence number)
See Also