Solved

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

Posted on 2010-09-22
3
1,511 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 19

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Paging GridView 7 32
Word Template Mail merge with vb.net 4 40
String manipulation 15 49
Showdialog 8 20
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

708 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now