Package Name | NuGet | Description |
---|---|---|
NLog.Extensions.AzureEventGrid | Azure Event Grid |
<extensions>
<add assembly="NLog.Extensions.AzureEventGrid" />
</extensions>
<targets>
<target xsi:type="AzureEventGrid"
name="String"
layout="Layout"
topic="Layout"
cloudEventSource="Layout"
gridEventSubject="Layout"
eventType="Layout"
contentType="Layout"
dataSchema="Layout"
accessKey="Layout">
<metadata name="mymeta" layout="mymetavalue" /> <!-- Multiple allowed -->
</target>
</targets>
name - Name of the target.
layout - Event data-payload. Layout Required.
topic - Topic EndPoint Uri. Layout
cloudEventSource - Only for CloudEvent-format (Recommended event format) and specify context where event occurred. Layout
gridEventSubject - Only for GridEvent-format and specify resource path relative to the topic path. Layout
eventType - Type of the event. Ex. "Contoso.Items.ItemReceived". Layout
contentType - Content type of the data-payload. Layout
dataFormat - Format of the data-payload (Binary / Json). Default Binary. String
dataSchema - Schema version of the data-payload. Layout
tenantIdentity - Input for DefaultAzureCredential. Layout
resourceIdentity - Input for DefaultAzureCredential as ManagedIdentityResourceId. Layout
clientIdentity - Input for DefaultAzureCredential as ManagedIdentityClientId. Layout
accessKey - Alternative to DefaultAzureCredential. Input for AzureKeyCredential. Layout
sharedAccessSignature - Alternative to DefaultAzureCredential. Input for AzureSasCredential. Layout
taskTimeoutSeconds - How many seconds a Task is allowed to run before it is cancelled (Default 150 secs)
retryDelayMilliseconds - How many milliseconds to wait before next retry (Default 500ms, and will be doubled on each retry).
retryCount - How many attempts to retry the same Task, before it is aborted (Default 0)