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.
Describe the bug
I've started using
Microsoft.Extensions.Logging
package with ApplicationInsights and noticed that thelogger
has no implementation ofTrackEvent
. And due to this bothILogger
andTelemetryClient
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 byApplicationInsightsLogger
.