logging-log4net-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Syeh Abidin (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LOG4NET-453) log4net.Appender.ColoredConsoleAppender Fail Under Mono
Date Wed, 25 Feb 2015 02:37:04 GMT
Syeh Abidin created LOG4NET-453:
-----------------------------------

             Summary: 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