Added colors back to console output.
Fixed line duplication in console output.ThreadPoolClientBranch
parent
52af264948
commit
d76d604ce9
|
@ -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)
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue