I'm searching for a feature to enable loggin/tracing in ASP.NET MVC 4 Web Api. In WCF you can activate logging and WCF writes that it is doing. Then, I can open the dump and search for errors.
I do not want to trace my web api but log that the framework is doing. If i trace/log the web api with message handlers I get no information if an error occures before my implementation.
See http://www.asp.net/web-api/overview/testing-and-debugging/tracing-in-aspnet-web-api
If you provide an ITraceWriter implementation (which can be as simple as calling System.Diagnostics.Trace), the web API framework will trace what it does.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With