NLog.Targets.FileLifecycleHooks
Enables hooking into file and FileTarget lifecycle events.
Hooks are invoked synchronously and therefore may affect application responsiveness
if they perform long-running operations.
protected FileLifecycleHooks()
Called after a log file has been closed by the FileTarget.
Called immediately before a log file is deleted by the FileTarget.
Initializes or wraps the stream opened for a log file.
This can be used to write file headers, or wrap the stream in another stream
that adds buffering, compression, encryption, etc.
Called when the FileTarget is being closed.
Called when the FileTarget is initialized.