Bug 58470 - xml message
Summary: xml message
Status: NEW
Alias: None
Product: Log4j - Now in Jira
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: PC All
: P2 major
Target Milestone: ---
Assignee: log4j-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-01 08:52 UTC by ahmed elattar
Modified: 2015-10-06 03:28 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ahmed elattar 2015-10-01 08:52:08 UTC
hi i am using log4j2 and the problem is when i use event.getLog4jLogger().debug(event.getMessage());
any xml in message  log file created like below

<ISOMessage direction=incoming>
	<Field_0>0200</Field_0>
	<Field_3>000000000</Field_3>
	<Field_4>000000000</Field_4>
	<Field_7>000000000</Field_7>
	<Field_11>000000000</Field_11>
	<Field_12>000000000</Field_12>
	<Field_13>000000000</Field_13>
	<Field_17>000000000</Field_17>
	<Field_32>000000000</Field_32>
	<Field_35>000000000</Field_35>
	<Field_37>000000000462</Field_37>
	<Field_41>7000</Field_41>
	<Field_43>CAI EG</Field_43>
	<Field_48>00000000000000000000000000000000000000000000</Field_48>
	<Field_49>818</Field_49>
	<Field_52>000000000</Field_52>
	<Field_60>000000000+000</Field_60>
	<Field_103>01000000000</Field_103>
	<Field_256>base24</Field_256>
	<Field_257>000000000</Field_257>
</ISOMessage>
as you see the problem is all open tags "<" converted to "&lt;" automatically and when i debug the message contain valid format < instead of &lt; the problem is with library
Comment 1 Gary Gregory 2015-10-06 03:28:31 UTC
This is the bug tracking system for Log4j version 1 which is EOL.

For version 2, please use https://issues.apache.org/jira/browse/log4j2/