Click or drag to resize

FileTarget Constructor (FileLifecycleHooks)

Initializes a new instance of the FileTarget class.

Namespace:  NLog.Targets
Assembly:  NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntax
public FileTarget(
	FileLifecycleHooks fileLifeCycle
)

Parameters

fileLifeCycle
Type: NLog.TargetsFileLifecycleHooks
FileLifeCycle to perform actions on certain life cycle events.
Remarks
The default value of the layout is:
1${longdate}|${level:uppercase=true}|${logger}|${message:withexception=true}
See Also