Trace to console : Trace : Development C# Examples


C# Examples » Development » Trace »

 

Trace to console









    
using  System;
using  System.IO;
using  System.Diagnostics;

class  MainClass
{
    [STAThread]
    static  void  Main(string[]  args)
    {
        Trace.Listeners.Add(new  TextWriterTraceListener(Console.Out));

        Trace.WriteLine("My  Trace  to  the  console");
        
        }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Development
» Trace