using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
public class MainClass
{
public static void Main()
{
TraceSwitch testTraceSwitch = new TraceSwitch("testTraceSwitch", "info");
Trace.WriteLineIf(testTraceSwitch.TraceError, "Something bad happened");
Trace.WriteLineIf(testTraceSwitch.TraceInfo, "Some informational trace");
}
}
|