You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "ahmed elattar (JIRA)" <ji...@apache.org> on 2015/10/13 12:10:05 UTC
[jira] [Commented] (LOG4J2-1155) XML format in log file using
XMLLayout
[ https://issues.apache.org/jira/browse/LOG4J2-1155?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14954745#comment-14954745 ]
ahmed elattar commented on LOG4J2-1155:
---------------------------------------
yes it's string and well formed but why it's not happen with close tage > the proplem is with open tag < only and can you post example for <XMLLayout messageContent="escape|raw|CDATA"
> XML format in log file using XMLLayout
> --------------------------------------
>
> Key: LOG4J2-1155
> URL: https://issues.apache.org/jira/browse/LOG4J2-1155
> Project: Log4j 2
> Issue Type: Bug
> Components: Layouts
> Affects Versions: 2.4
> Environment: weblogic container
> Reporter: ahmed elattar
> Priority: Critical
>
> 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
> {code}
> <Event xmlns="http://logging.apache.org/log4j/2.0/events" timeMillis="1443621318068" thread="[ACTIVE] ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tuning)'" level="DEBUG" loggerName="com.egyptianbanks.ecm.interfaces.Base24Interface" endOfBatch="false" loggerFqcn="org.apache.logging.log4j.spi.AbstractLogger">
> <Message>[ApplicationTimeStamp : 2015-09-30 15:55:18.0068] Processing ISO Request:
> <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>
> {code}
> as you see the problem is all open tags "<" converted to "<" automatically and when i debug the message contain valid format < instead of < the problem is with library
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org