Log4Net with Application Insights

后端 未结 4 1657
Happy的楠姐
Happy的楠姐 2020-12-29 03:59

I am trying to configure my azure asp.net website to send log4net traces to Azure Application Insights. I can see in my azure console page views etc, hence I know that is wo

4条回答
  •  梦毁少年i
    2020-12-29 04:43

    In my case (I have added Application Insights to existing web application) besides Microsoft.ApplicationInsights.Log4NetAppender I have had to add Microsoft.ApplicationInsights.Web package using NuGet. After that in created ApplicationInsights.config you need to specify your InstrumentationKey.

    E.g. of ApplicationInsights.config

    
    
      YOUR KEY HERE
      
      ...
    

提交回复
热议问题