Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1976
  • Last Modified:

Where does System.Diagnostics.Trace.WriteLine write to?

In an MVC2 web application, where does this write the error to?
0
newbieweb
Asked:
newbieweb
2 Solutions
 
Daniel Van Der WerkenCommented:
Here is a really good walk-through on this topic:
http://msdn.microsoft.com/en-us/library/b0ectfxd%28v=VS.90%29.aspx

I can't tell you for sure, because I don't know ho wyou set this up, but it is either going to be in the trace output on the page or possibly in the output window (Debug->Windows->Output) in the IDE.

0
 
illusioCommented:
It writes the message to any tracelistener that is added to the Trace.Listeners collection.
You can add "Listeners" in code using the Trace.Listeners.Add( ...) method or through the app.config file.
When you "Debug" a debugtracelistener is added by the visualstudio by default to output all that is traced in the output window as told by Dan7el.
0
 
newbiewebAuthor Commented:
Thanks.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now