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 robcube <gi...@git.apache.org> on 2017/03/02 21:47:37 UTC

[GitHub] log4net issue #16: (LOG4NET-467) .NET Core support

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)
    ```



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---