Click or drag to resize

FileTargetCreateDirs Property

Gets or sets a value indicating whether to create directories if they do not exist.

Namespace:  NLog.Targets
Assembly:  NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax
public bool CreateDirs { get; set; }

Property Value

Type: Boolean
Remarks
Setting this to false may improve performance a bit, but you'll receive an error when attempting to write to a directory that's not present.
See Also