Home > OS >  How to I read and write to console in Azure in .Net framework over a long period of time?
How to I read and write to console in Azure in .Net framework over a long period of time?

Time:09-28

We have a .net framework 4.5.1 MVC web application. We want to log information to the console when the application runs. Obviously when running the app in my local computer, I can see the output window and my logs are there. But what about when it's deployed to Azure? How do I see my logs? Where in Azure should I log to (or what are my options)?

I tried:

  • Log streaming, but that lets me read logs for 12 hours then auto-shuts off. I need to see logs from a long time ago.
  • Azure App Insights, but I couldn't find any log information in there.
  • Log Querying, where it shows me a SQL-studio-like interface. But it says there's no logs, and sometimes it's grayed out and I can't enter a query, not that it shows anyways.
  • Using these logging tools:
Console.WriteLine("           
  • Related