Details
Description
After updating from version 2.0.8 to 2.0.14, using XmlLayoutSchemaLog4j seems to be broken resulting in a following error:
System.ArgumentException: Cannot set the namespace if Namespaces is 'false'. at System.Xml.XmlTextWriter.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.AppenderSkeleton.RenderLoggingEvent(TextWriter writer, LoggingEvent loggingEvent) at log4net.Appender.TextWriterAppender.Append(LoggingEvent loggingEvent) at log4net.Appender.FileAppender.Append(LoggingEvent loggingEvent) at log4net.Appender.RollingFileAppender.Append(LoggingEvent loggingEvent)
Configuration is initialized by executing XmlConfigurator, where Stream is pointing to configuration.xml
log4net.Config.XmlConfigurator.Configure(Stream configStream);
After some digging I belive for it to be related to https://github.com/apache/logging-log4net/pull/18 which was introduced in version 2.0.13 under Bug fixes section
Attachments
Attachments
Issue Links
- relates to
-
LOG4NET-586 XmlLayoutSchemaLog4j throws exception under .Net Core
- Resolved
-
LOG4NET-683 UdpAppender is no longer supported for .Net Framework!?
- Closed