diff Implab/Diagnostics/ConsoleTraceListener.cs @ 43:7c2369f580b8

improved tracing, TextListenerBase can be bound to logical operation scope.
author cin
date Wed, 16 Apr 2014 10:12:56 +0400
parents fe33f4e02ad5
children d9d794b61bb9
line wrap: on
line diff
--- a/Implab/Diagnostics/ConsoleTraceListener.cs	Wed Apr 16 00:33:09 2014 +0400
+++ b/Implab/Diagnostics/ConsoleTraceListener.cs	Wed Apr 16 10:12:56 2014 +0400
@@ -8,6 +8,16 @@
 
         static readonly object _consoleLock = new object();
 
+        public ConsoleTraceListener()
+            : base(true) {
+
+        }
+
+        public ConsoleTraceListener(bool local)
+            : base(local) {
+
+        }
+
         protected override void WriteEntry(TraceContext context, EventText text) {
             var msg = new StringBuilder();