Log4net
  1. Log4net
  2. LOG4NET-34

Allow xml config values to be set via XmlNodeType.CDATA or XmlNodeType.Text rather than just value="foo"

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2.10
    • Component/s: None
    • Labels:
      None

      Description

      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>

        Activity

        Nicko Cadell made changes -
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.2.10 [ 11128 ]
        Ron Grabowski made changes -
        Field Original Value New Value
        Attachment XmlHierarchyConfigurator.cs.patch [ 12310769 ]
        Ron Grabowski created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Ron Grabowski
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development