Aleena Saviour

Aleena Saviour

  • 1.5k
  • 520
  • 63.9k

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"/>
 

Brought to you by: