using System; using System.Collections.Generic; using System.Text; using System.Diagnostics; namespace Krs.Ats.IBNet { /// /// General Tracer handles the switch and writeline functions /// public class GeneralTracer : TraceSwitch { /// /// Used for parameter based write line to the system tracer /// /// Condition for writing the trace (often derived atleast in part from the switch) /// Message containing parameter arguments /// Prameter Arguments public static void WriteLineIf(bool condition, string message, params object[] args) { Trace.WriteLineIf(condition, String.Format(message, args)); } /// /// Create New General Tracer /// /// The name to display on a user interface. /// The description of the switch. public GeneralTracer(string displayName, string description) : base(displayName, description) { } } }