diff options
author | Justin Clarke Casey | 2008-02-09 01:53:57 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-02-09 01:53:57 +0000 |
commit | d546859bc18f4b061381ff3d93610c752cbe774d (patch) | |
tree | aba04873c203c15b25d73f1258b9494429a88ed6 /OpenSim/Framework/Console/OpenSimAppender.cs | |
parent | * In the most basic situations, ClientView and ScenePresence no longer leak m... (diff) | |
download | opensim-SC-d546859bc18f4b061381ff3d93610c752cbe774d.zip opensim-SC-d546859bc18f4b061381ff3d93610c752cbe774d.tar.gz opensim-SC-d546859bc18f4b061381ff3d93610c752cbe774d.tar.bz2 opensim-SC-d546859bc18f4b061381ff3d93610c752cbe774d.tar.xz |
* Change logger to handle [<entry>] where <entry> contains non alphabetic characters
* Change logger to not print extra line if [<entry>] <text> like string is not logged
* Remove more of my previous chatty debugging statements
Diffstat (limited to 'OpenSim/Framework/Console/OpenSimAppender.cs')
-rw-r--r-- | OpenSim/Framework/Console/OpenSimAppender.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Framework/Console/OpenSimAppender.cs b/OpenSim/Framework/Console/OpenSimAppender.cs index 6b1ba39..1835d18 100644 --- a/OpenSim/Framework/Console/OpenSimAppender.cs +++ b/OpenSim/Framework/Console/OpenSimAppender.cs | |||
@@ -15,7 +15,7 @@ namespace OpenSim.Framework.Console | |||
15 | override protected void Append(LoggingEvent le) | 15 | override protected void Append(LoggingEvent le) |
16 | { | 16 | { |
17 | string loggingMessage = RenderLoggingEvent(le); | 17 | string loggingMessage = RenderLoggingEvent(le); |
18 | string regex = @"^(?<Front>.*?)\[(?<Category>\w+)\]:?(?<End>.*)"; | 18 | string regex = @"^(?<Front>.*?)\[(?<Category>[^\]]+)\]:?(?<End>.*)"; |
19 | 19 | ||
20 | Regex RE = new Regex(regex, RegexOptions.Multiline); | 20 | Regex RE = new Regex(regex, RegexOptions.Multiline); |
21 | MatchCollection matches = RE.Matches(loggingMessage); | 21 | MatchCollection matches = RE.Matches(loggingMessage); |
@@ -44,7 +44,7 @@ namespace OpenSim.Framework.Console | |||
44 | } | 44 | } |
45 | else | 45 | else |
46 | { | 46 | { |
47 | System.Console.WriteLine(loggingMessage); | 47 | System.Console.Write(loggingMessage); |
48 | } | 48 | } |
49 | } | 49 | } |
50 | 50 | ||
@@ -79,4 +79,4 @@ namespace OpenSim.Framework.Console | |||
79 | } | 79 | } |
80 | 80 | ||
81 | } | 81 | } |
82 | } \ No newline at end of file | 82 | } |