简体   繁体   中英

How to combine ILogger and Application Insights

I am used to Azure Application Insights and I am writing a new service in which I would like to use the ILogger interface, coming from the Microsoft.Extensions.Logging.Abstractions library.

However, in order to fully utilize Application Insights capabilities, I need to have some sort of activity id per each trace, that allows me to group together related traces.

How could I integrate those together without losing the above functionality?

Please take a look here: https://github.com/Microsoft/ApplicationInsights-aspnetcore/wiki/Logging

If the above does not help, then post back.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM