Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

C# Trace output problem

Status
Not open for further replies.

MatFocs

Programmer
Jun 22, 2005
1
CH
Hello everybody,

It's the first time for me on this forum.
I work with C# and SharpDevelop 1.0.3 Build 1768

I am starting with C# and it's my first steps with
Trace class. So I just started with a very simple
console application :

Trace.Listeners.Add(new TextWriterTraceListener(Console.Out));
Trace.WriteLine("Hello");
Trace.Flush();
Trace.Close();

THE PROBLEM : no output at all ! I tried also with
a text file instead of Console.Out : the file
is created but is empty. I also tried manual compilation
with /d:trace but same problem.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top