Solved

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

Posted on 2010-09-22
3
1,703 Views
Last Modified: 2012-05-10
In an MVC2 web application, where does this write the error to?
0
Comment
Question by:newbieweb
3 Comments
 
LVL 20

Accepted Solution

by:
Daniel Van Der Werken earned 250 total points
ID: 33738040
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
 
LVL 7

Assisted Solution

by:illusio
illusio earned 250 total points
ID: 33742984
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
 

Author Closing Comment

by:newbieweb
ID: 33766190
Thanks.
0

Featured Post

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question