gilmishal gilmishal - 1 month ago 24
ASP.NET (C#) Question

Asp.net Core azure web app logging

I have an asp.net core deployed to azure, and I am trying to configure logging to my application using the

Microsoft.Extentions.Logging
interfaces.

currently my app is writing the logs to Log Files folder in the web app storage.

enter image description here

This seems like the right place to log my changes. However, I want to view these logs in a normal interface - downloading a text file everytime, is kinda annoying.

I have looked into application insights, and azure diagnostic logs, but none of them suggest how to work with it using the ILogger interface.

Answer

First of all you have to configure logs in your application on Azure: Logs

There is also an option to look at the application console output:

Output

You can also configure Storage on Azure and save logs there (you can configure that in Diagnostic logs section).

Comments