Aleena Saviour

Aleena Saviour

  • NA
  • 519
  • 84.5k

Logging using Nlog into blobstorage

Oct 4 2018 9:25 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"/>