From 6b84bafbdc354d0eb7b1606ea74a435b28df4feb Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 10:08:15 +0000 Subject: Utilisateur : Fcolin Date : 6/02/06 Heure : 17:12 Archivé dans $/CSharp/Ivy/IvyProbeConsole Commentaire: utilisation generale de traceDEbug et System.Diagnostics (vss 9) --- CSharp/Ivy/IvyProbeConsole/IvyProbeConsole.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'CSharp/Ivy/IvyProbeConsole') diff --git a/CSharp/Ivy/IvyProbeConsole/IvyProbeConsole.cs b/CSharp/Ivy/IvyProbeConsole/IvyProbeConsole.cs index defb333..eac345d 100644 --- a/CSharp/Ivy/IvyProbeConsole/IvyProbeConsole.cs +++ b/CSharp/Ivy/IvyProbeConsole/IvyProbeConsole.cs @@ -12,6 +12,7 @@ namespace IvyProbeConsole using System.Text.RegularExpressions; using System.IO; using System.Configuration; + using System.Diagnostics; using IvyBus; /// Console implementation of the ivyprobe test program. @@ -277,11 +278,10 @@ namespace IvyProbeConsole String s = client.ApplicationName + " sent" + args.ToString(); println(s); } - + [Conditional("DEBUG")] private void traceDebug(String s) { - if (debug) - System.Console.Out.WriteLine("-->Probe<-- " + s); + Trace.WriteLineIf(debug, "-->Probe<-- " + s); } private void println(String s) { -- cgit v1.1