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

MapRewritePolicy always behaves like mode "Add"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0-beta2
    • 2.0-beta3
    • Appenders

    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

        1. MapRewritePolicy.patch
          0.8 kB
          Das Archive

        Activity

          People

            Unassigned Unassigned
            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