logging-log4net-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Bodewig (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LOG4NET-292) Managed ColoredConsoleAppender for .NET2/Mono.
Date Tue, 06 Sep 2011 11:59:10 GMT

     [ https://issues.apache.org/jira/browse/LOG4NET-292?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Stefan Bodewig updated LOG4NET-292:
-----------------------------------

    Fix Version/s: 1.2 Maintenance Release

> Managed ColoredConsoleAppender for .NET2/Mono.
> ----------------------------------------------
>
>                 Key: LOG4NET-292
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-292
>             Project: Log4net
>          Issue Type: Improvement
>          Components: Appenders
>    Affects Versions: 1.2.10
>            Reporter: Pavlos Touboulidis
>            Priority: Minor
>             Fix For: 1.2 Maintenance Release
>
>         Attachments: ColoredConsoleAppender2.cs
>
>
> The original ColoredConsoleAppender was written before the .NET framework (and Mono)
had built-in support for console colors so it was written using Win32 API calls. The AnsiColorTerminalAppender,
while it works, isn't understood by the Windows command prompt so there's no console appender
that works on both environments.
> I'm attaching a replacement for both classes that uses the new (.NET 2) console colors
and works on both platforms. It is based on the existing ColoredConsoleAppender. The color
mapping values are not compatible with the previous version since this one uses the standard
.NET 2 ConsoleColor enumeration values.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message