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

Lookup Plugin not found

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4
    • Fix Version/s: 2.12.0
    • Component/s: Lookups
    • Labels:
      None
    • Environment:

      Java 1.8, Win64

      Description

      If I define a custom Plugin for Lookups it is recognized by log4j2 but the Interpolator class does not find the Plugin.

      Interpolator.lookup(...) tries to find the key inside its lookups Map but the key in the map is .toLowerCase() and the extracted prefix not. So there is no match.

      Defining my Plugin name with lower chars is working.

        Attachments

          Activity

            People

            • Assignee:
              rgoers Ralph Goers
              Reporter:
              pheinrich Pascal Heinrich
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

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