Skip to content

BatchSize in appsettings.json not working? #155

@symlynk

Description

@symlynk

How would I go about setting the batchSize and taskDelayMilliseconds using appsettings.json? The following doesn't appear to be working as I'm hitting the 50000 block limit with similar number of lines in the log no matter what values I use.

"NLog": {
	"extensions": [
		{
			"assembly": "NLog.Web.AspNetCore"
		},
		{
			"assembly": "NLog.Extensions.AzureBlobStorage"
		}
	],
	"targets": {
		"blob": {
			"type": "AzureBlobStorage",
			"blobName": "${logger}/${shortdate:universalTime=True}.log",
			"connectionString": "${configsetting:ConnectionStrings.Storage}",
			"container": "logs",
			"batchSize": 1000,
			"taskDelayMilliseconds": 1000
		}
	},
	"rules": [
		{
			"logger": "*",
			"minLevel": "Trace",
			"writeTo": "blob"
		}
	]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions