Click or drag to resize

FileTargetWriteHeaderWhenInitialFileNotEmpty Property

Gets or sets whether to write the Header on initial creation of file appender, even if the file is not empty. Default value is , which means only write header when initial file is empty (Ex. ensures valid CSV files)

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

Property Value

Type: Boolean
Remarks
Default: . Alternative use ArchiveOldFileOnStartup to ensure each application session gets individual log-file.
See Also