Solved

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

Posted on 2010-09-22
3
1,809 Views
Last Modified: 2012-05-10
In an MVC2 web application, where does this write the error to?
0
Comment
Question by:newbieweb
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

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…
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.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

728 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