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

NLog.Targets.Wrappers.RetryingTargetWrapper

Retries in case of write error.
public bool EnableBatchWrite { get; set; }

Gets or sets whether to enable batching, and only apply single delay when a whole batch fails

public Layout<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 Layout<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(string name, Target wrappedTarget, int retryCount, int retryDelayMilliseconds)

Initializes a new instance of the RetryingTargetWrapper class.

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

Initializes a new instance of the RetryingTargetWrapper class.