 | FileTargetArchiveEvery Property |
Gets or sets a value indicating whether to trigger archive operation based on time-period, by moving active-file to file-path specified by
ArchiveFileName
Namespace:
NLog.Targets
Assembly:
NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntaxpublic FileArchivePeriod ArchiveEvery { get; set; }
Public Property ArchiveEvery As FileArchivePeriod
Get
Set
Dim instance As FileTarget
Dim value As FileArchivePeriod
value = instance.ArchiveEvery
instance.ArchiveEvery = value
member ArchiveEvery : FileArchivePeriod with get, set
Property Value
Type:
FileArchivePeriod
Remarks
Default:
None .
Archive move operation only works if
FileName is static in nature, and not rolling automatically because of ${date} or ${shortdate}
NLog FileTarget probes the file-birthtime to recognize when time-period has passed, but file-birthtime is not supported by all filesystems.
See Also