microsoft / ApplicationInsights-dotnet-logging

.NET Logging adaptors
106 stars 49 forks source link

Microsoft.Extensions.Logging ApplicationInsightsLogger has no implementation for TrackEvent #320

Closed amigup closed 5 years ago

amigup commented 5 years ago

Describe the bug

I've started using Microsoft.Extensions.Logging package with ApplicationInsights and noticed that the logger has no implementation of TrackEvent. And due to this both ILogger and TelemetryClient needs to injected.

To Reproduce

Steps to reproduce the behavior: Using Asp.Net core Web API with Application insights and Microsoft.Extensions.Logging package (other relevant packages)

Expected behavior

The TrackEvent should be expose by ApplicationInsightsLogger.

cijothomas commented 5 years ago

Duplicate: https://github.com/microsoft/ApplicationInsights-dotnet-logging/issues/254