* Display normal log information in the console's default foreground colour, for those of us with white backgrounds
parent
eaa89f5a03
commit
ca9432d110
|
@ -213,7 +213,6 @@ namespace OpenSim.Framework.Console
|
||||||
MatchCollection matches = RE.Matches(text);
|
MatchCollection matches = RE.Matches(text);
|
||||||
|
|
||||||
string outText = text;
|
string outText = text;
|
||||||
ConsoleColor color = ConsoleColor.White;
|
|
||||||
|
|
||||||
if (matches.Count == 1)
|
if (matches.Count == 1)
|
||||||
{
|
{
|
||||||
|
@ -227,11 +226,12 @@ namespace OpenSim.Framework.Console
|
||||||
}
|
}
|
||||||
|
|
||||||
if (level == "error")
|
if (level == "error")
|
||||||
color = ConsoleColor.Red;
|
WriteColorText(ConsoleColor.Red, outText);
|
||||||
else if (level == "warn")
|
else if (level == "warn")
|
||||||
color = ConsoleColor.Yellow;
|
WriteColorText(ConsoleColor.Yellow, outText);
|
||||||
|
else
|
||||||
|
System.Console.Write(outText);
|
||||||
|
|
||||||
WriteColorText(color, outText);
|
|
||||||
System.Console.WriteLine();
|
System.Console.WriteLine();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue