diff options
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 |