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: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntax
public bool CreateDirs { get; set; }

Property Value

Type: Boolean
Remarks
Default: . Setting this to may improve performance a bit, but will always fail when attempt writing to a non-existing directory.
See Also