How to ouput API debug logs in a file ? (IIS)

Viewed 243

I have an issue with an app (api) using application insights. On my computer, everything is fine. On the dev server, nothing happens. The application insights output on visual studio is very self explanatory. If I can get hold to them, I will be able to investigate.

How do you output the "output debug" like in visual studio in a file when hosted on IIS ?

2 Answers

Use System.Diagnostics.Debug.WriteLine(...) and you see output in Visual Studio. and enable debug in webconfig

Related