Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-1860

Shortcut to add Property and KeyValuePair component in ConfigurationBuilder

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.8.1
    • 2.9.0
    • Configurators
    • None

    Description

      It would be nice to have shortcuts for

      builder.addComponent(builder.newComponent("my-name, "Property", "my-value"));
      

      and

      builder.addComponent(builder.newComponent("KeyValuePair").addAttribute("key", "my-key").addAttribute("value", "my-value"));
      

      since they are used by several appenders and layouts.

      Attachments

        Activity

          People

            mikaelstaldal Mikael Ståldal
            mikaelstaldal Mikael Ståldal
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: