NLog target for Azure file system (file shares)
- StorageConnectionString (required): Azure storage connection string.
- AzureFileShareName (required): Azure file system share name.
- AzureFileShareFolder (required): Folder in which the logs are created.
- You can use empty string to write on the root level.
- You can use path expression to write to a subfolder, for example folder1/folder2. If path or its part does not exist it will be created.
- AzureFileName (required): File name pattern for log files.
<extensions>
<add assembly="NLog.Extensions.AzureFileSystem"/>
</extensions>
<targets async="true">
<target type="AzureFileSystem"
name="ownFile"
layout="${verbose}"
StorageConnectionString="DefaultEndpointsProtocol=https;AccountName=;AccountKey=;EndpointSuffix="
AzureFileShareName="demo-app"
AzureFileShareFolder="ownLogs"
AzureFileName="nlog-own-${processid}-${shortdate}.log" />
</targets>