diff options
author | Justin Clarke Casey | 2009-05-25 16:29:01 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2009-05-25 16:29:01 +0000 |
commit | ca9432d110caa3cafc6cfb70ca89e7d36c64bc39 (patch) | |
tree | 32384174602c0a15e68c3cb6e0fd903093b715e7 /OpenSim/Framework/Console | |
parent | oops: wrong "path" in addin.xml (diff) | |
download | opensim-SC-ca9432d110caa3cafc6cfb70ca89e7d36c64bc39.zip opensim-SC-ca9432d110caa3cafc6cfb70ca89e7d36c64bc39.tar.gz opensim-SC-ca9432d110caa3cafc6cfb70ca89e7d36c64bc39.tar.bz2 opensim-SC-ca9432d110caa3cafc6cfb70ca89e7d36c64bc39.tar.xz |
* Display normal log information in the console's default foreground colour, for those of us with white backgrounds
Diffstat (limited to 'OpenSim/Framework/Console')
-rw-r--r-- | OpenSim/Framework/Console/LocalConsole.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Framework/Console/LocalConsole.cs b/OpenSim/Framework/Console/LocalConsole.cs index c1ac9b3..737475a 100644 --- a/OpenSim/Framework/Console/LocalConsole.cs +++ b/OpenSim/Framework/Console/LocalConsole.cs | |||
@@ -213,7 +213,6 @@ namespace OpenSim.Framework.Console | |||
213 | MatchCollection matches = RE.Matches(text); | 213 | MatchCollection matches = RE.Matches(text); |
214 | 214 | ||
215 | string outText = text; | 215 | string outText = text; |
216 | ConsoleColor color = ConsoleColor.White; | ||
217 | 216 | ||
218 | if (matches.Count == 1) | 217 | if (matches.Count == 1) |
219 | { | 218 | { |
@@ -227,11 +226,12 @@ namespace OpenSim.Framework.Console | |||
227 | } | 226 | } |
228 | 227 | ||
229 | if (level == "error") | 228 | if (level == "error") |
230 | color = ConsoleColor.Red; | 229 | WriteColorText(ConsoleColor.Red, outText); |
231 | else if (level == "warn") | 230 | else if (level == "warn") |
232 | color = ConsoleColor.Yellow; | 231 | WriteColorText(ConsoleColor.Yellow, outText); |
233 | 232 | else | |
234 | WriteColorText(color, outText); | 233 | System.Console.Write(outText); |
234 | |||
235 | System.Console.WriteLine(); | 235 | System.Console.WriteLine(); |
236 | } | 236 | } |
237 | 237 | ||