2 // System.Diagnostics.TraceSwtich.cs
5 // John R. Hicks (angryjohn69@nc.rr.com)
10 namespace System.Diagnostics
13 /// Multi-level switch to provide tracing and debug output without
16 public class TraceSwitch : Switch
18 private TraceLevel level;
19 private bool traceError = false;
20 private bool traceInfo = false;
21 private bool traceVerbose = false;
22 private bool traceWarning = false;
25 /// Initializes a new instance
27 /// <param name="displayName">Name for the switch</param>
28 /// <param name="description">Description of the switch</param>
29 public TraceSwitch(string displayName, string description)
30 : base(displayName, description)
35 /// Gets or sets the trace level that specifies the messages to
36 /// output for tracing and debugging.
38 public TraceLevel Level
52 /// Gets a value indicating whether the Level is set to Error,
53 /// Warning, Info, or Verbose.
55 public bool TraceError
64 /// Gets a value indicating whether the Level is set to Info or Verbose.
75 /// Gets a value indicating whether the Level is set to Verbose.
77 public bool TraceVerbose
86 /// Gets a value indicating whether the Level is set to
87 /// Warning, Info, or Verbose.
89 public bool TraceWarning