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: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax
public bool WriteHeaderWhenInitialFileNotEmpty { get; set; }

Property Value

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