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] [Comment Edited] (LOG4NET-453) log4net.Appender.ColoredConsoleAppender Fail Under Mono
Date Sun, 29 Mar 2015 15:24:52 GMT

    [ https://issues.apache.org/jira/browse/LOG4NET-453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14385815#comment-14385815
] 

Stefan Bodewig edited comment on LOG4NET-453 at 3/29/15 3:24 PM:
-----------------------------------------------------------------

doesn't ManagedColoredConsoleAppender work on Mono?

http://logging.apache.org/log4net/release/framework-support.html#appenders explicitly says
ColoredConsoleAppender doesn't work, but ManagedColoredConsoleAppender is meant to be its
replacement.


was (Author: bodewig):
doesn't ManagedColoredConsoleAppender work on Mono?


> log4net.Appender.ColoredConsoleAppender Fail Under Mono
> -------------------------------------------------------
>
>                 Key: LOG4NET-453
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-453
>             Project: Log4net
>          Issue Type: Bug
>          Components: Appenders
>    Affects Versions: 1.2.11
>         Environment: Mono 3.x under Linux Centos/Debian/Ubuntu
>            Reporter: Syeh Abidin
>
> I am trying to use log4net.Appender.ColoredConsoleAppender 
> under mono, but seem failed with message :
> log4net:ERROR Could not create Appender [A1] of type [log4net.Appender.ColoredConsoleAppender].
Reported error follows.
> System.EntryPointNotFoundException: GetConsoleOutputCP
>   at (wrapper managed-to-native) log4net.Appender.ColoredConsoleAppender:GetConsoleOutputCP
()
>   at log4net.Appender.ColoredConsoleAppender.ActivateOptions () [0x00000] in <filename
unknown>:0
>   at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ParseAppender (System.Xml.XmlElement
appenderElement) [0x00000] in <filename unknown>:0
> it seem bug issue,
> the log4net.xml is simple:
>  <appender name="A1" type="log4net.Appender.ColoredConsoleAppender">
>         <layout type="log4net.Layout.PatternLayout">
>             <conversionPattern value="%date [%thread] %-5level %logger %ndc - %message%newline"
/>
>         </layout>
>         <mapping>
>             <level value="INFO" />
>             <foreColor value="White, HighIntensity" />
>             <backColor value="Green" />
>         </mapping>
>         <mapping>
>             <level value="DEBUG" />
>             <foreColor value="White, HighIntensity" />
>             <backColor value="Blue" />
>         </mapping>
>         <mapping>
>             <level value="WARN" />
>             <foreColor value="Yellow, HighIntensity" />
>             <backColor value="Purple" />
>         </mapping>
>         <mapping>
>             <level value="ERROR" />
>             <foreColor value="Yellow, HighIntensity" />
>             <backColor value="Red" />
>         </mapping>
>     </appender>



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message