Create TraceSource and Trace Information : TraceSource « Development « C# / CSharp Tutorial






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();
        
        
    }
}








14.29.TraceSource
14.29.1.Create TraceSource and trace events
14.29.2.Create TraceSource and Trace Information
14.29.3.Create TraceSource and SourceSwitch: switch level