How to do logging in botframework composer 2.0.0?

Viewed 213
1 Answers

Here is an example of the settings:

  • blobStorage is used to enable TranscriptLoggerMiddleware.
  • cosmosDb is used to store user and conversation data.
  • applicationInsights is used to enable the telemetry logger.

Only changes for activating the transcript logging into blob storage is adding these settings in appsettings json file:

"applicationInsights": {
  "InstrumentationKey": "*******************************"
},
"cosmosDb": {
  "cosmosDBEndpoint": "****",
  "authKey": "****",
  "databaseId": "botstate-db",
  "collectionId": "botstate-collection",
  "containerId": "botstate-container"
},
"blobStorage": {
  "connectionString": "DefaultEndpointsProtocol=https;AccountName=****;AccountKey=********;EndpointSuffix=core.windows.net",
  "container": "transcripts"
}
Related