Allow xml config values to be set via XmlNodeType.CDATA or XmlNodeType.Text
rather than just value="foo"
--------------------------------------------------------------------------------------------------------
Key: LOG4NET-34
URL: http://issues.apache.org/jira/browse/LOG4NET-34
Project: Log4net
Type: Improvement
Reporter: Ron Grabowski
Priority: Trivial
Attachments: XmlHierarchyConfigurator.cs.patch
Currently values for xml config nodes must be passed in via the value attribute:
<conversionPattern value="%5p %d{yyyy-MM-dd hh:mm:ss tt} (%c:%L) - %m%n" />
Why isn't this syntax supported?
<conversionPattern>%5p %d{yyyy-MM-dd hh:mm:ss tt} (%c:%L) -
%m%n</conversionPattern>
If the above syntax were supported, a possible solution to this question:
http://www.mail-archive.com/log4net-user%40logging.apache.org/msg01791.html
would be:
<conversionPattern>
<![CDATA[<header>%n <date>%d</date>%n <user>%u</user>%n
<info>%m</info>%n</header>%n]]>
</conversionPattern>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira