diff --git a/OpenSim/Framework/Console/OpenSimAppender.cs b/OpenSim/Framework/Console/OpenSimAppender.cs index fb3c7c200f..6b1ba39cd7 100644 --- a/OpenSim/Framework/Console/OpenSimAppender.cs +++ b/OpenSim/Framework/Console/OpenSimAppender.cs @@ -15,7 +15,7 @@ namespace OpenSim.Framework.Console override protected void Append(LoggingEvent le) { string loggingMessage = RenderLoggingEvent(le); - string regex = @"^(?.*)\[(?\w+)\](?.*)"; + string regex = @"^(?.*?)\[(?\w+)\]:?(?.*)"; Regex RE = new Regex(regex, RegexOptions.Multiline); MatchCollection matches = RE.Matches(loggingMessage); @@ -26,8 +26,21 @@ namespace OpenSim.Framework.Console System.Console.Write("["); WriteColorText(DeriveColor(matches[0].Groups["Category"].Value), matches[0].Groups["Category"].Value); - System.Console.Write("]"); - System.Console.WriteLine(matches[0].Groups["End"].Value); + System.Console.Write("]:"); + + if (le.Level == Level.Error) + { + WriteColorText(ConsoleColor.Red, matches[0].Groups["End"].Value); + } + else if (le.Level == Level.Warn) + { + WriteColorText(ConsoleColor.Yellow, matches[0].Groups["End"].Value); + } + else + { + System.Console.Write(matches[0].Groups["End"].Value); + } + System.Console.WriteLine(); } else { diff --git a/bin/OpenSim.exe.config b/bin/OpenSim.exe.config index 0c6b1df566..d38de24263 100644 --- a/bin/OpenSim.exe.config +++ b/bin/OpenSim.exe.config @@ -8,7 +8,7 @@ - +