Using microsoft built-in logging for long-running cross-platform services
In this repo, i m enabling logging for long-running background services.
Two ways are provided in order to enable microsoft built-in logging :
📌
BasicWay
: use exclusivelyMicrosoft.Extensions.Logging
andILogger
📌
AdvanceWay
: use alsoMicrosoft.ApplicationInsights.WorkerService
andTelemetryClient
Logging targets used in the demo are :
📌 console target
📌 application insights target
Tools
: vs19, net 5.0