Click or drag to resize

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; }

Property Value

Type: FileArchivePeriod
Remarks
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