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

Shortcut to add Property and KeyValuePair component in ConfigurationBuilder

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.8.1
    • Fix Version/s: 2.9.0
    • Component/s: Configurators
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: