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.

        Activity

        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit df1b3e8846246988d6119f65e7fcb3e5a9a3f1cb in logging-log4j2's branch refs/heads/LOG4J2-1860 from Mikael Ståldal
        [ https://git-wip-us.apache.org/repos/asf?p=logging-log4j2.git;h=df1b3e8 ]

        LOG4J2-1860 Shortcut to add Property and KeyValuePair component in ConfigurationBuilder

        Show
        jira-bot ASF subversion and git services added a comment - Commit df1b3e8846246988d6119f65e7fcb3e5a9a3f1cb in logging-log4j2's branch refs/heads/ LOG4J2-1860 from Mikael Ståldal [ https://git-wip-us.apache.org/repos/asf?p=logging-log4j2.git;h=df1b3e8 ] LOG4J2-1860 Shortcut to add Property and KeyValuePair component in ConfigurationBuilder
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit f64ea4b597ee6cef22c99ed5f382489ff87431c8 in logging-log4j2's branch refs/heads/LOG4J2-1860 from Mikael Ståldal
        [ https://git-wip-us.apache.org/repos/asf?p=logging-log4j2.git;h=f64ea4b ]

        Merge branch 'master' into LOG4J2-1860

        Show
        jira-bot ASF subversion and git services added a comment - Commit f64ea4b597ee6cef22c99ed5f382489ff87431c8 in logging-log4j2's branch refs/heads/ LOG4J2-1860 from Mikael Ståldal [ https://git-wip-us.apache.org/repos/asf?p=logging-log4j2.git;h=f64ea4b ] Merge branch 'master' into LOG4J2-1860
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit df1b3e8846246988d6119f65e7fcb3e5a9a3f1cb in logging-log4j2's branch refs/heads/master from Mikael Ståldal
        [ https://git-wip-us.apache.org/repos/asf?p=logging-log4j2.git;h=df1b3e8 ]

        LOG4J2-1860 Shortcut to add Property and KeyValuePair component in ConfigurationBuilder

        Show
        jira-bot ASF subversion and git services added a comment - Commit df1b3e8846246988d6119f65e7fcb3e5a9a3f1cb in logging-log4j2's branch refs/heads/master from Mikael Ståldal [ https://git-wip-us.apache.org/repos/asf?p=logging-log4j2.git;h=df1b3e8 ] LOG4J2-1860 Shortcut to add Property and KeyValuePair component in ConfigurationBuilder
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit f64ea4b597ee6cef22c99ed5f382489ff87431c8 in logging-log4j2's branch refs/heads/master from Mikael Ståldal
        [ https://git-wip-us.apache.org/repos/asf?p=logging-log4j2.git;h=f64ea4b ]

        Merge branch 'master' into LOG4J2-1860

        Show
        jira-bot ASF subversion and git services added a comment - Commit f64ea4b597ee6cef22c99ed5f382489ff87431c8 in logging-log4j2's branch refs/heads/master from Mikael Ståldal [ https://git-wip-us.apache.org/repos/asf?p=logging-log4j2.git;h=f64ea4b ] Merge branch 'master' into LOG4J2-1860
        Hide
        mikaelstaldal Mikael Ståldal added a comment -

        In Git master.

        Show
        mikaelstaldal Mikael Ståldal added a comment - In Git master.
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit f64ea4b597ee6cef22c99ed5f382489ff87431c8 in logging-log4j2's branch refs/heads/LOG4J2-1851 from Mikael Ståldal
        [ https://git-wip-us.apache.org/repos/asf?p=logging-log4j2.git;h=f64ea4b ]

        Merge branch 'master' into LOG4J2-1860

        Show
        jira-bot ASF subversion and git services added a comment - Commit f64ea4b597ee6cef22c99ed5f382489ff87431c8 in logging-log4j2's branch refs/heads/ LOG4J2-1851 from Mikael Ståldal [ https://git-wip-us.apache.org/repos/asf?p=logging-log4j2.git;h=f64ea4b ] Merge branch 'master' into LOG4J2-1860

          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:

              Development