Mercurial > pub > ImplabNet
comparison Implab/Diagnostics/ConsoleTraceListener.cs @ 109:1b7ebcc52e5a v2
minor fixes
author | cin |
---|---|
date | Fri, 14 Nov 2014 14:04:24 +0300 |
parents | 4c0e5ef99986 |
children | 6c49d02a9a05 |
comparison
equal
deleted
inserted
replaced
108:f3bdb7ba59b9 | 109:1b7ebcc52e5a |
---|---|
24 for (int i = 0; i < text.indent; i++) | 24 for (int i = 0; i < text.indent; i++) |
25 msg.Append(" "); | 25 msg.Append(" "); |
26 msg.AppendFormat("[{0}]:{1}: {2}", args.ThreadId, channel, text.content); | 26 msg.AppendFormat("[{0}]:{1}: {2}", args.ThreadId, channel, text.content); |
27 | 27 |
28 lock (_consoleLock) { | 28 lock (_consoleLock) { |
29 Console.ForegroundColor = (ConsoleColor)(args.ThreadId % 15 + 1); | 29 //Console.ForegroundColor = (ConsoleColor)(args.ThreadId % 15 + 1); |
30 Console.WriteLine(msg); | 30 Console.WriteLine(msg); |
31 } | 31 } |
32 } | 32 } |
33 } | 33 } |
34 } | 34 } |