Create TraceSource and Trace Information : TraceSource : Development C# Examples


C# Examples » Development » TraceSource »

 

Create TraceSource and Trace Information









    
using  System;
using  System.Collections.Generic;
using  System.Diagnostics;
using  System.Text;


public  class  MainClass
{
        public  static  void  Main()
        {
                TraceSource  myTraceSource  =  new  TraceSource("myTraceSource");
                myTraceSource.TraceInformation("Customer  successfully  loaded  from  DB");
                myTraceSource.Flush();
                
                
        }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Development
» TraceSource