Aleena Saviour

Aleena Saviour

  • NA
  • 519
  • 87.7k

write to file into blob storage using nlog

Oct 5 2018 5:24 AM
Hi,
Please help me with how to log exceptions into azure blob storage using Nlog?
given below is my code in webconfig
<target name="azureError" type="AzureBlob" layout="${longdate:universalTime=true} ${level:uppercase=true} - ${logger}: ${message} ${exception:format=tostring:innerFormat=tostring:maxInnerExceptionLevel=1000}" connectionString="azureconnectionstring" container="containername"
blobName="/foldername/${shortdate}.txt"/>