| FileTargetArchiveEvery Property |
Gets or sets a value indicating whether to automatically archive log files every time the specified time passes.
Namespace:
NLog.Targets
Assembly:
NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax public 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:
FileArchivePeriodRemarks
Files are moved to the archive as part of the write operation if the current period of time changes. For example
if the current hour changes from 10 to 11, the first write that will occur
on or after 11:00 will trigger the archiving.
See Also