Click or drag to resize

FileTargetArchiveSuffixFormat Property

Gets or sets the format-string to convert archive sequence-number by using string.Format

Namespace:  NLog.Targets
Assembly:  NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntax
public string ArchiveSuffixFormat { get; set; }

Property Value

Type: String
Remarks
Default: _{0:00} . Ex. to prefix archive sequence number with leading zero's then one can use _{0:000} . Legacy archive-logic with ArchiveFileName can use suffix _{1:yyyyMMdd}_{0:00} .
See Also