* 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
This commit is contained in:
Justin Clarke Casey
2008-02-09 01:53:57 +00:00
parent a50a8376d6
commit d546859bc1
4 changed files with 10 additions and 10 deletions

View File

@@ -15,7 +15,7 @@ namespace OpenSim.Framework.Console
override protected void Append(LoggingEvent le)
{
string loggingMessage = RenderLoggingEvent(le);
string regex = @"^(?<Front>.*?)\[(?<Category>\w+)\]:?(?<End>.*)";
string regex = @"^(?<Front>.*?)\[(?<Category>[^\]]+)\]:?(?<End>.*)";
Regex RE = new Regex(regex, RegexOptions.Multiline);
MatchCollection matches = RE.Matches(loggingMessage);
@@ -44,7 +44,7 @@ namespace OpenSim.Framework.Console
}
else
{
System.Console.WriteLine(loggingMessage);
System.Console.Write(loggingMessage);
}
}
@@ -79,4 +79,4 @@ namespace OpenSim.Framework.Console
}
}
}
}