NLog version: 5
.NET Core 2
Will there be an Application Insights target with NLog 5 and with the release of ASP.NET Core 2?
My current customer likes NLog and also Application Insights. They would like to control the configuration and logging of information to Application Insights via the NLog config file (and of course logging to other targets).
The production release for the app is not until next year, so we can wait if required. We're currently logging directly to Application Insights via the Application Insights API.
It would be great to have, but it's currently not on the roadmap.
I main reason: I don't use Azure so I can't test it.
A PR with this target (and unit tests) would be great.
It looks like Microsoft already has an Application Insights target, but I don't know if it will work with NLog 5. Maybe they will publish an update?
This shouldn't be the responsibility of this repository. If it is, then in fairness I'll submit a pr for exceptionless.
@c0shea Microsoft.ApplicationInsights.NLogTarget only supports .Net Full Framework. It doesn't support .Net Core.
Created PR with NLog ver. 4.5.0 - https://github.com/Microsoft/ApplicationInsights-dotnet-logging/pull/167 (For ver. 2.6.0)
@snakefoot Can you provide an example of how to configure the Application Insights target in Core 2?
@erik-johnson Well the PR has just been accepted, so you probably have to beg for them to release ver. 2.6.0-beta3:
https://www.nuget.org/packages/Microsoft.ApplicationInsights.NLogTarget/
Microsoft.ApplicationInsights.NLogTarget ver. 2.6.0-beta3 has been released:
https://www.nuget.org/packages/Microsoft.ApplicationInsights.NLogTarget/2.6.0-beta3
Is there an example on how to integrate this ApplicationInsights target?
Thanks
@tekguy I tried this http://lmgtfy.com/?q=application+insights+nlog and then I found https://cmatskas.com/working-with-application-insights-and-nlog-in-console-apps-net/
as there is a package for this (https://www.nuget.org/packages/Microsoft.ApplicationInsights.NLogTarget/), I think it's OK to close this issue.
@snakefoot thanks!
Most helpful comment
@tekguy I tried this http://lmgtfy.com/?q=application+insights+nlog and then I found https://cmatskas.com/working-with-application-insights-and-nlog-in-console-apps-net/