Trace logs location, where to view them
问题 Where do you see Trace.Write(""); logs while developing an MVC or WCF app? What is the correct place to look at? 回答1: When using the System.Diagnostics.Trace class, the Write method writes its trace output "to the trace listeners in the Listeners collection." The Trace.Listeners property by default only contains an instance of the DefaultTraceListener, which outputs messages to the debugger output window. To view those trace messages, you have to enable debugging, of course. So if you debug