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