NLog by Kim Christensen

<PackageReference Include="NLog" Version="3.0.0" />

 RetryingTargetWrapper

Retries in case of write error.
public int RetryCount { get; set; }

Gets or sets the number of retries that should be attempted on the wrapped target in case of a failure.

public int RetryDelayMilliseconds { get; set; }

Gets or sets the time to wait between retries in milliseconds.

Initializes a new instance of the RetryingTargetWrapper class.

public RetryingTargetWrapper(Target wrappedTarget, int retryCount, int retryDelayMilliseconds)

Initializes a new instance of the RetryingTargetWrapper class.