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

MapRewritePolicy always behaves like mode "Add"

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0-beta2
    • Fix Version/s: 2.0-beta3
    • Component/s: Appenders
    • Labels:

      Description

      Hello!

      The "rewrite" method of org.apache.logging.log4j.core.appender.rewrite.MapRewritePolicy always calls
      newMap.putAll(map);

      which causes the mode "Update" to also behave like mode "Add".

      Best Regards,

      Das

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dasarchive Das Archive
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 5m
                5m
                Remaining:
                Remaining Estimate - 5m
                5m
                Logged:
                Time Spent - Not Specified
                Not Specified