Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I'm following this step to enable tracing in Azure Bot App Service https://microsoft.github.io/AzureTipsAndTricks/blog/tip30.html

However, my trace does not appear in the log stream. I can see a bunch of other logs here.

I also tried "#define TRACE" at the class with the code

System.Diagnostics.Trace.WriteLine("Entering the About View");

Am I missing anything?

My Azure Web App setting: https://pictr.com/images/2019/06/25/5BHthA.png

My Log stream: https://pictr.com/images/2019/06/25/5BHszI.png

Thanks.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
245 views
Welcome To Ask or Share your Answers For Others

1 Answer

Thanks. Can use below to log to App Service's Logstream as well if using Starter Bot at https://github.com/martinkearn/Bot-Starter-Template/:

  ILogger<BotFrameworkHttpAdapter> logger,

 logger.LogError($"Exception caught on attempting to Delete ConversationState : {e.Message}");

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...