 | FileTargetArchiveOldFileOnStartup Property |
Gets or sets a value indicating whether to archive old log file on startup.
Namespace:
NLog.Targets
Assembly:
NLog (in NLog.dll) Version: 5.5.0+1873145cbc26e0312d9481234d69ce7dc68aac4e
Syntaxpublic bool ArchiveOldFileOnStartup { get; set; }
Public Property ArchiveOldFileOnStartup As Boolean
Get
Set
Dim instance As FileTarget
Dim value As Boolean
value = instance.ArchiveOldFileOnStartup
instance.ArchiveOldFileOnStartup = value
member ArchiveOldFileOnStartup : bool with get, set
Property Value
Type:
Boolean
Remarks
This option works only when the "FileName" parameter denotes a single file.
After archiving the old file, the current log file will be empty.
See Also