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.5.0+1873145cbc26e0312d9481234d69ce7dc68aac4e
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