I have a Bot configured for Teams and hosted in Azure. I have a couple of graph api requests sent from the Bot. I would like to log the time between request, response, and other related exceptions thrown. Where is this log best kept for an Azure hosted Bot?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- running headless chrome in an microsoft azure web
- Docker task in Azure devops won't accept "$(pw
The easiest way (if you re hosting it on Azure App Service), is to enable App logging and then use Stream Logs Service. Of course, on your app you would need to use
Trace
class and log the events manually.Check: https://docs.microsoft.com/en-us/azure/app-service/web-sites-enable-diagnostic-log
This can be done automatically when you choose to integrate Application Insights. See this guide:
You can also keep track of bot messages analytics using Application Insights (source):