Compiled and run on: Linux 2.4.21-166-default (SuSE 9)
gcc version 3.3.1 (i586)
A ./log4crc file will not be correctly parsed if there
is a xml comment in it. The parsing will stop at the
first comment, ignoring further tags. Depending on
where your first comment is, you may get no output from
log4c. This happened with a comment after the <config>
element, and after a <category> element.
I believe that a comment causes the parser to reverse
the return code from somewhere in domnode-xml-parser.c,
as called by xml-domnode.c:xml_parse() line 111.
Without comments, the return code is 0, with comments
it seems to be 1.
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE log4c SYSTEM "">
<!-- this comment prevents the category from being
<category name="root" priority="info" appender="stdout"/>
Log in to post a comment.