diff options
author | Jo Shields <directhex@mono-cvs.ximian.com> | 2009-12-22 19:52:26 +0300 |
---|---|---|
committer | Jo Shields <directhex@mono-cvs.ximian.com> | 2009-12-22 19:52:26 +0300 |
commit | f197ca8c63801b9ab2e19a2a6e47e8bca8279bcf (patch) | |
tree | eba16d6031e124d5cc2403193069013996286dbe /docs/HtmlAgilityPack/HtmlConsoleListener.cs | |
parent | 3d083fe3fe9fc3a57bf81cbc863320d65f08617d (diff) |
Switch from using HtmlAgilityPack 1.0 binary snapshot to HtmlAgilityPack 1.4~beta2 source
svn path=/trunk/mono/; revision=148843
Diffstat (limited to 'docs/HtmlAgilityPack/HtmlConsoleListener.cs')
-rw-r--r-- | docs/HtmlAgilityPack/HtmlConsoleListener.cs | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/docs/HtmlAgilityPack/HtmlConsoleListener.cs b/docs/HtmlAgilityPack/HtmlConsoleListener.cs new file mode 100644 index 00000000000..bd14a7a244d --- /dev/null +++ b/docs/HtmlAgilityPack/HtmlConsoleListener.cs @@ -0,0 +1,33 @@ +// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
+using System;
+using System.Diagnostics;
+
+namespace HtmlAgilityPack
+{
+ internal class HtmlConsoleListener : TraceListener
+ {
+ #region Public Methods
+
+ public override void Write(string Message)
+ {
+ Write(Message, "");
+ }
+
+ public override void Write(string Message, string Category)
+ {
+ Console.Write("T:" + Category + ": " + Message);
+ }
+
+ public override void WriteLine(string Message)
+ {
+ Write(Message + "\n");
+ }
+
+ public override void WriteLine(string Message, string Category)
+ {
+ Write(Message + "\n", Category);
+ }
+
+ #endregion
+ }
+}
\ No newline at end of file |