mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 03:06:05 +08:00
* 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:
@@ -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
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user