You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-dev@logging.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/03/02 21:47:45 UTC

[jira] [Commented] (LOG4NET-467) Is .NET Core, will be supported in the near future, or not

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

ASF GitHub Bot commented on LOG4NET-467:
----------------------------------------

Github user robcube commented on the issue:

    https://github.com/apache/log4net/pull/16
  
    Getting a weird error using .net core 1.1:
    ```
    var logRepository = LogManager.GetRepository(Assembly.GetEntryAssembly());
    XmlConfigurator.ConfigureAndWatch(logRepository, new FileInfo("log4net.config.xml"));
    ILog Log = LogManager.GetLogger(typeof(Program));
    Log.Debug("hey!");
    ```
    at last line results in:
    ```
    System.ArgumentException: Invalid name character in 'log4j:event'. The ':' character, hexadecimal value 0x0x3A, cannot be included in a name.
       at System.Xml.XmlWellFormedWriter.CheckNCName(String ncname)
       at System.Xml.XmlWellFormedWriter.WriteStartElement(String prefix, String localName, String ns)
       at log4net.Layout.XmlLayoutSchemaLog4j.FormatXml(XmlWriter writer, LoggingEvent loggingEvent)
       at log4net.Layout.XmlLayoutBase.Format(TextWriter writer, LoggingEvent loggingEvent)
       at log4net.Appender.FileAppender.Append(LoggingEvent loggingEvent)
       at log4net.Appender.AppenderSkeleton.DoAppend(LoggingEvent loggingEvent)
    ```



> Is .NET Core, will be supported in the near future, or not
> ----------------------------------------------------------
>
>                 Key: LOG4NET-467
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-467
>             Project: Log4net
>          Issue Type: New Feature
>          Components: Core
>    Affects Versions: 1.2.13
>            Reporter: san kan
>              Labels: features
>             Fix For: 2.0.6
>
>         Attachments: LOG4NET-467.patch
>
>
> As you know, ms is moving heavily toward .Net core:
> https://github.com/dotnet/core
> so, is there a road map for making a version that supports it?
> and i noticed that log4net, has not been updated for 2 years.
> so is it maintained, or being forgotten?



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)