Click or drag to resize

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
Syntax
public FileArchivePeriod ArchiveEvery { 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