Table of Contents

Class RestClientLogTarget

Namespace
Innova.NLogExtensions
Assembly
Innova.NLogExtensions.dll

Represents a custom NLog target for logging to a RESTful API.

[Target("InnovaRestClientLog")]
public class RestClientLogTarget : AsyncTaskTarget, IDisposable
Inheritance
Target
TargetWithLayout
TargetWithContext
AsyncTaskTarget
RestClientLogTarget
Implements

Constructors

RestClientLogTarget()

Initializes a new instance of the RestClientLogTarget class.

Properties

ClientId

Gets or sets the layout for the client ID.

Parameters

Gets the list of method call parameters.

Url

Gets or sets the URL of the RESTful API.

Methods

InitializeTarget()

Initializes the target.

WriteAsyncTask(LogEventInfo, CancellationToken)

Writes a single log event asynchronously.

WriteAsyncTask(IList<LogEventInfo>, CancellationToken)

Writes the log events asynchronously.