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

Allow max length of StructuredDataMessage keys to be user defined

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.8.2
    • Fix Version/s: 2.9.0
    • Component/s: API
    • Labels:
      None

      Description

      RFC 5424 specifies a maximum length of 32 characters for structured data names. However, in other cases where structured data is desired having a 32 character limit is too small.

        Activity

        Hide
        ralph.goers@dslextreme.com Ralph Goers added a comment -

        No. There has always been a max. It was 32 (and still is by default). If that is exceeded an exception is thrown. That behavior hasn't changed. The only thing changed is that the max length is no longer a constant.

        Show
        ralph.goers@dslextreme.com Ralph Goers added a comment - No. There has always been a max. It was 32 (and still is by default). If that is exceeded an exception is thrown. That behavior hasn't changed. The only thing changed is that the max length is no longer a constant.
        Hide
        garydgregory Gary Gregory added a comment -

        Hi. As soon as there is a max, some folks are going to want to trim values to that max to avoid dealing with exceptions. Is that an option?

        Show
        garydgregory Gary Gregory added a comment - Hi. As soon as there is a max, some folks are going to want to trim values to that max to avoid dealing with exceptions. Is that an option?
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 2ce1a7ff25b1699d94dc0e73ff889b42002a728f in logging-log4j2's branch refs/heads/master from Ralph Goers
        [ https://git-wip-us.apache.org/repos/asf?p=logging-log4j2.git;h=2ce1a7f ]

        LOG4J2-1984 - Allow user to specify maxLength of StructuredData names

        Show
        jira-bot ASF subversion and git services added a comment - Commit 2ce1a7ff25b1699d94dc0e73ff889b42002a728f in logging-log4j2's branch refs/heads/master from Ralph Goers [ https://git-wip-us.apache.org/repos/asf?p=logging-log4j2.git;h=2ce1a7f ] LOG4J2-1984 - Allow user to specify maxLength of StructuredData names
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 81ad6d8450aaa3468cdc0d1630d73965cc4495f7 in logging-log4j2's branch refs/heads/master from Ralph Goers
        [ https://git-wip-us.apache.org/repos/asf?p=logging-log4j2.git;h=81ad6d8 ]

        LOG4J2-1984 - Allow user to specify maxLength of StructuredData names

        Show
        jira-bot ASF subversion and git services added a comment - Commit 81ad6d8450aaa3468cdc0d1630d73965cc4495f7 in logging-log4j2's branch refs/heads/master from Ralph Goers [ https://git-wip-us.apache.org/repos/asf?p=logging-log4j2.git;h=81ad6d8 ] LOG4J2-1984 - Allow user to specify maxLength of StructuredData names

          People

          • Assignee:
            Unassigned
            Reporter:
            ralph.goers@dslextreme.com Ralph Goers
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development