summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfcolin2007-02-01 10:08:15 +0000
committerfcolin2007-02-01 10:08:15 +0000
commit6b84bafbdc354d0eb7b1606ea74a435b28df4feb (patch)
tree95bbb92e4aa6cb5d80ca3438dc21c4a7fb99cf91
parent148e9366671f5a3ba13dace4c798311036c330c6 (diff)
downloadivy-csharp-6b84bafbdc354d0eb7b1606ea74a435b28df4feb.zip
ivy-csharp-6b84bafbdc354d0eb7b1606ea74a435b28df4feb.tar.gz
ivy-csharp-6b84bafbdc354d0eb7b1606ea74a435b28df4feb.tar.bz2
ivy-csharp-6b84bafbdc354d0eb7b1606ea74a435b28df4feb.tar.xz
Utilisateur : Fcolin Date : 6/02/06 Heure : 17:12 Archivé dans $/CSharp/Ivy/IvyProbeConsole Commentaire: utilisation generale de traceDEbug et System.Diagnostics (vss 9)
-rw-r--r--CSharp/Ivy/IvyProbeConsole/IvyProbeConsole.cs6
1 files changed, 3 insertions, 3 deletions
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;
/// <summary> 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)
{