Added colors back to console output.

Fixed line duplication in console output.
ThreadPoolClientBranch
Jeff Ames 2008-02-06 03:52:36 +00:00
parent 52af264948
commit d76d604ce9
11 changed files with 190 additions and 20 deletions

View File

@ -177,16 +177,6 @@ namespace OpenSim.Framework.Console
{
lock (m_syncRoot)
{
try
{
System.Console.WriteLine(format, args);
}
catch (FormatException)
{
System.Console.WriteLine(args);
}
try
{
if (color != ConsoleColor.White)

View File

@ -6,7 +6,25 @@
<appSettings>
</appSettings>
<log4net>
<appender name="Console" type="log4net.Appender.ConsoleAppender">
<appender name="Console" type="log4net.Appender.AnsiColorTerminalAppender">
<mapping>
<level value="ERROR" />
<foreColor value="Red" />
<attributes value="Bright"/>
</mapping>
<mapping>
<level value="DEBUG"/>
<foreColor value="Green"/>
</mapping>
<mapping>
<level value="INFO"/>
<foreColor value="Blue"/>
</mapping>
<mapping>
<level value="Warn"/>
<foreColor value="Yellow"/>
<attributes value="Bright"/>
</mapping>
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date %-5level %logger - %message%newline" />
</layout>

View File

@ -6,7 +6,25 @@
<appSettings>
</appSettings>
<log4net>
<appender name="Console" type="log4net.Appender.ConsoleAppender">
<appender name="Console" type="log4net.Appender.AnsiColorTerminalAppender">
<mapping>
<level value="ERROR" />
<foreColor value="Red" />
<attributes value="Bright"/>
</mapping>
<mapping>
<level value="DEBUG"/>
<foreColor value="Green"/>
</mapping>
<mapping>
<level value="INFO"/>
<foreColor value="Blue"/>
</mapping>
<mapping>
<level value="Warn"/>
<foreColor value="Yellow"/>
<attributes value="Bright"/>
</mapping>
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date %-5level %logger - %message%newline" />
</layout>

View File

@ -6,7 +6,25 @@
<appSettings>
</appSettings>
<log4net>
<appender name="Console" type="log4net.Appender.ConsoleAppender">
<appender name="Console" type="log4net.Appender.AnsiColorTerminalAppender">
<mapping>
<level value="ERROR" />
<foreColor value="Red" />
<attributes value="Bright"/>
</mapping>
<mapping>
<level value="DEBUG"/>
<foreColor value="Green"/>
</mapping>
<mapping>
<level value="INFO"/>
<foreColor value="Blue"/>
</mapping>
<mapping>
<level value="Warn"/>
<foreColor value="Yellow"/>
<attributes value="Bright"/>
</mapping>
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date %-5level %logger - %message%newline" />
</layout>

View File

@ -6,7 +6,25 @@
<appSettings>
</appSettings>
<log4net>
<appender name="Console" type="log4net.Appender.ConsoleAppender">
<appender name="Console" type="log4net.Appender.AnsiColorTerminalAppender">
<mapping>
<level value="ERROR" />
<foreColor value="Red" />
<attributes value="Bright"/>
</mapping>
<mapping>
<level value="DEBUG"/>
<foreColor value="Green"/>
</mapping>
<mapping>
<level value="INFO"/>
<foreColor value="Blue"/>
</mapping>
<mapping>
<level value="Warn"/>
<foreColor value="Yellow"/>
<attributes value="Bright"/>
</mapping>
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date %-5level %logger - %message%newline" />
</layout>

View File

@ -6,7 +6,25 @@
<appSettings>
</appSettings>
<log4net>
<appender name="Console" type="log4net.Appender.ConsoleAppender">
<appender name="Console" type="log4net.Appender.AnsiColorTerminalAppender">
<mapping>
<level value="ERROR" />
<foreColor value="Red" />
<attributes value="Bright"/>
</mapping>
<mapping>
<level value="DEBUG"/>
<foreColor value="Green"/>
</mapping>
<mapping>
<level value="INFO"/>
<foreColor value="Blue"/>
</mapping>
<mapping>
<level value="Warn"/>
<foreColor value="Yellow"/>
<attributes value="Bright"/>
</mapping>
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date %-5level %logger - %message%newline" />
</layout>

View File

@ -6,7 +6,25 @@
<appSettings>
</appSettings>
<log4net>
<appender name="Console" type="log4net.Appender.ConsoleAppender">
<appender name="Console" type="log4net.Appender.AnsiColorTerminalAppender">
<mapping>
<level value="ERROR" />
<foreColor value="Red" />
<attributes value="Bright"/>
</mapping>
<mapping>
<level value="DEBUG"/>
<foreColor value="Green"/>
</mapping>
<mapping>
<level value="INFO"/>
<foreColor value="Blue"/>
</mapping>
<mapping>
<level value="Warn"/>
<foreColor value="Yellow"/>
<attributes value="Bright"/>
</mapping>
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date %-5level %logger - %message%newline" />
</layout>

View File

@ -6,7 +6,25 @@
<appSettings>
</appSettings>
<log4net>
<appender name="Console" type="log4net.Appender.ConsoleAppender">
<appender name="Console" type="log4net.Appender.AnsiColorTerminalAppender">
<mapping>
<level value="ERROR" />
<foreColor value="Red" />
<attributes value="Bright"/>
</mapping>
<mapping>
<level value="DEBUG"/>
<foreColor value="Green"/>
</mapping>
<mapping>
<level value="INFO"/>
<foreColor value="Blue"/>
</mapping>
<mapping>
<level value="Warn"/>
<foreColor value="Yellow"/>
<attributes value="Bright"/>
</mapping>
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date %-5level %logger - %message%newline" />
</layout>

View File

@ -6,7 +6,25 @@
<appSettings>
</appSettings>
<log4net>
<appender name="Console" type="log4net.Appender.ConsoleAppender">
<appender name="Console" type="log4net.Appender.AnsiColorTerminalAppender">
<mapping>
<level value="ERROR" />
<foreColor value="Red" />
<attributes value="Bright"/>
</mapping>
<mapping>
<level value="DEBUG"/>
<foreColor value="Green"/>
</mapping>
<mapping>
<level value="INFO"/>
<foreColor value="Blue"/>
</mapping>
<mapping>
<level value="Warn"/>
<foreColor value="Yellow"/>
<attributes value="Bright"/>
</mapping>
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date %-5level %logger - %message%newline" />
</layout>

View File

@ -6,7 +6,25 @@
<appSettings>
</appSettings>
<log4net>
<appender name="Console" type="log4net.Appender.ConsoleAppender">
<appender name="Console" type="log4net.Appender.AnsiColorTerminalAppender">
<mapping>
<level value="ERROR" />
<foreColor value="Red" />
<attributes value="Bright"/>
</mapping>
<mapping>
<level value="DEBUG"/>
<foreColor value="Green"/>
</mapping>
<mapping>
<level value="INFO"/>
<foreColor value="Blue"/>
</mapping>
<mapping>
<level value="Warn"/>
<foreColor value="Yellow"/>
<attributes value="Bright"/>
</mapping>
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date %-5level %logger - %message%newline" />
</layout>

View File

@ -6,7 +6,25 @@
<appSettings>
</appSettings>
<log4net>
<appender name="Console" type="log4net.Appender.ConsoleAppender">
<appender name="Console" type="log4net.Appender.AnsiColorTerminalAppender">
<mapping>
<level value="ERROR" />
<foreColor value="Red" />
<attributes value="Bright"/>
</mapping>
<mapping>
<level value="DEBUG"/>
<foreColor value="Green"/>
</mapping>
<mapping>
<level value="INFO"/>
<foreColor value="Blue"/>
</mapping>
<mapping>
<level value="Warn"/>
<foreColor value="Yellow"/>
<attributes value="Bright"/>
</mapping>
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date %-5level %logger - %message%newline" />
</layout>