diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/Console/OpenSimAppender.cs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/OpenSim/Framework/Console/OpenSimAppender.cs b/OpenSim/Framework/Console/OpenSimAppender.cs index d381179..ddd6d9a 100644 --- a/OpenSim/Framework/Console/OpenSimAppender.cs +++ b/OpenSim/Framework/Console/OpenSimAppender.cs | |||
@@ -40,32 +40,32 @@ namespace OpenSim.Framework.Console | |||
40 | string loggingMessage = RenderLoggingEvent(le); | 40 | string loggingMessage = RenderLoggingEvent(le); |
41 | 41 | ||
42 | string regex = @"^(?<Front>.*?)\[(?<Category>[^\]]+)\]:?(?<End>.*)"; | 42 | string regex = @"^(?<Front>.*?)\[(?<Category>[^\]]+)\]:?(?<End>.*)"; |
43 | 43 | ||
44 | Regex RE = new Regex(regex, RegexOptions.Multiline); | 44 | Regex RE = new Regex(regex, RegexOptions.Multiline); |
45 | MatchCollection matches = RE.Matches(loggingMessage); | 45 | MatchCollection matches = RE.Matches(loggingMessage); |
46 | // Get some direct matches $1 $4 is a | 46 | // Get some direct matches $1 $4 is a |
47 | if (matches.Count == 1) | 47 | if (matches.Count == 1) |
48 | { | 48 | { |
49 | System.Console.Write(matches[0].Groups["Front"].Value); | 49 | System.Console.Write(matches[0].Groups["Front"].Value); |
50 | System.Console.Write("["); | 50 | System.Console.Write("["); |
51 | 51 | ||
52 | WriteColorText(DeriveColor(matches[0].Groups["Category"].Value), matches[0].Groups["Category"].Value); | 52 | WriteColorText(DeriveColor(matches[0].Groups["Category"].Value), matches[0].Groups["Category"].Value); |
53 | System.Console.Write("]:"); | 53 | System.Console.Write("]:"); |
54 | 54 | ||
55 | if (le.Level == Level.Error) | 55 | if (le.Level == Level.Error) |
56 | { | 56 | { |
57 | WriteColorText(ConsoleColor.Red, matches[0].Groups["End"].Value); | 57 | WriteColorText(ConsoleColor.Red, matches[0].Groups["End"].Value); |
58 | } | 58 | } |
59 | else if (le.Level == Level.Warn) | 59 | else if (le.Level == Level.Warn) |
60 | { | 60 | { |
61 | WriteColorText(ConsoleColor.Yellow, matches[0].Groups["End"].Value); | 61 | WriteColorText(ConsoleColor.Yellow, matches[0].Groups["End"].Value); |
62 | } | 62 | } |
63 | else | 63 | else |
64 | { | 64 | { |
65 | System.Console.Write(matches[0].Groups["End"].Value); | 65 | System.Console.Write(matches[0].Groups["End"].Value); |
66 | } | 66 | } |
67 | System.Console.WriteLine(); | 67 | System.Console.WriteLine(); |
68 | } | 68 | } |
69 | else | 69 | else |
70 | { | 70 | { |
71 | System.Console.Write(loggingMessage); | 71 | System.Console.Write(loggingMessage); |