diff options
author | Jeff Ames | 2008-05-16 01:22:11 +0000 |
---|---|---|
committer | Jeff Ames | 2008-05-16 01:22:11 +0000 |
commit | 65c5efe43b68700bad94076d4cd421160203c5de (patch) | |
tree | 589b56649ed02f4942671fd6e51c6dc43f682e0d /OpenSim/Framework/Console/OpenSimAppender.cs | |
parent | Thank you very much, mjm for : (diff) | |
download | opensim-SC-65c5efe43b68700bad94076d4cd421160203c5de.zip opensim-SC-65c5efe43b68700bad94076d4cd421160203c5de.tar.gz opensim-SC-65c5efe43b68700bad94076d4cd421160203c5de.tar.bz2 opensim-SC-65c5efe43b68700bad94076d4cd421160203c5de.tar.xz |
Formatting cleanup.
Diffstat (limited to 'OpenSim/Framework/Console/OpenSimAppender.cs')
-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); |