Carlos Icaza created LOG4PHP-217:
------------------------------------
Summary: LoggerLayoutXml with enabled log4jNamespace create extra
"xml labels"
Key: LOG4PHP-217
URL: https://issues.apache.org/jira/browse/LOG4PHP-217
Project: Log4php
Issue Type: Bug
Components: Code
Affects Versions: 2.3.0
Environment: OS: Debian GNU/Linux 7.3 (virtualbox virtual machine)
PHP: 5.4.4-14+deb7u7
Apache: 2.2.22
Hardware: Intel Celeron 2GHz, 2 MB RAM
Reporter: Carlos Icaza
Fix For: 2.3.0
LoggerLayoutXml with enabled log4jNamespace create extra "xml labels"
The logfile contains this xml labels:
<log4j:eventSet ...>
</log4j:eventSet>
Some programs like Apache Chainsaw and Otroslogviewer are unable to parse the
log file locally or remotely.
I think that only events must be logged. I know that this component does not
output a complete well-formed XML file. The output should be designed to be
included as an external entity in a separate file to form a correct XML file.
I removed this methods: getHeader() and getFooter() from file
src/main/php/layouts/LoggerLayoutXml.php, and the above mentioned programs
parse the log file successfully
I created a patch using Meld 1.6.0, but there is no option to upload neither
patch files nor screen capture images.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)