Skip to content

XmlLayoutSchemaLog4J: Changed XML start element for exceptions since v3.0.0 #225

@sita-martin

Description

@sita-martin

Until v2.0.17 exceptions were written with the start element log4j:throwable in an XML. Since version 3.0.0 this has changed to log4j:data.
i.e.
v2.0.17
<log4j:data>System.TimeoutException: throw timeout</log4j:data>
v3.0.3
<log4j:throwable>System.TimeoutException: throw timeout</log4j:throwable>

In my opinion this not correct and has to be changed back.
Line 224 in the XmlLayoutSchemaLog4J.cs:
writer.WriteStartElement("log4j:throwable", "log4j", "data", "log4net") => IMHO not correct
writer.WriteStartElement("log4j:throwable", "log4j", "throwable", "log4net") => correct

Thanks for any feedback.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions