public void Display() { _fact.Display(); var sw = new StreamWriter(Console.OpenStandardOutput()); trace.Dump("activity", sw); trace.Dump("state", sw); trace.Clear(); }
/// <summary> /// Clear trace view. /// </summary> private void ClearBtb_Click(object sender, EventArgs e) { try { Trace.Clear(); } catch (Exception ex) { MessageBox.Show(this, ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
public override void Test() { TestTraceListener t = new TestTraceListener(); Trace.Clear(); Trace.AddListener(t); Linn.Trace.Level = Linn.Trace.kAll; Linn.Trace.Write(Linn.Trace.kTest, "TestString"); TEST(t.Msg == "TestString"); Linn.Trace.Write(Linn.Trace.kTest, new TestObject()); TEST(t.Msg == "TestObject"); Linn.Trace.WriteLine(Linn.Trace.kTest, "TestString"); TEST(t.Msg == "TestString\n"); Linn.Trace.WriteLine(Linn.Trace.kTest, new TestObject()); TEST(t.Msg == "TestObject\n"); // different trace levels t.Msg = null; Linn.Trace.Level = Linn.Trace.kNone; Linn.Trace.Write(Linn.Trace.kTest, "TestString"); TEST(t.Msg == null); Linn.Trace.Write(Linn.Trace.kTest, new TestObject()); TEST(t.Msg == null); Linn.Trace.WriteLine(Linn.Trace.kTest, "TestString"); TEST(t.Msg == null); Linn.Trace.WriteLine(Linn.Trace.kTest, new TestObject()); TEST(t.Msg == null); Linn.Trace.Level = Linn.Trace.kUpnp; Linn.Trace.Write(Linn.Trace.kTest, "TestString"); TEST(t.Msg == null); Linn.Trace.Write(Linn.Trace.kTest, new TestObject()); TEST(t.Msg == null); Linn.Trace.WriteLine(Linn.Trace.kTest, "TestString"); TEST(t.Msg == null); Linn.Trace.WriteLine(Linn.Trace.kTest, new TestObject()); TEST(t.Msg == null); Linn.Trace.Write(Linn.Trace.kUpnp, "TestString"); TEST(t.Msg == "TestString"); Linn.Trace.Write(Linn.Trace.kUpnp, new TestObject()); TEST(t.Msg == "TestObject"); Linn.Trace.WriteLine(Linn.Trace.kUpnp, "TestString"); TEST(t.Msg == "TestString\n"); Linn.Trace.WriteLine(Linn.Trace.kUpnp, new TestObject()); TEST(t.Msg == "TestObject\n"); }
public void ValidateTraceWant() { ulong traceSetting = 0x1; Trace.Set(traceSetting); bool check = Trace.Want(traceSetting); Assert.IsTrue(check); Trace.Clear(traceSetting); check = Trace.Want(traceSetting); Assert.IsFalse(check); ApplicationLog.WriteLine(string.Concat( "Trace BVT: Validation of Want method for trace setting completed successfully.")); }
public void Clear() { Trace.Clear(); }
public void Display() { _jugs.Display(); trace.Dump(); trace.Clear(); }