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

Issues using Lookup Plugin in Json Template Logging

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.14.1
    • 2.15.0
    • Configuration
    • None

    Description

      I recently need to create a series of Plugins to be used in JsonTemplateLogging.  I am not sure which are documentation issues and which are bugs in the underlying code.

      The first difficulty was in matching the name I did not see anything in the documentation about the case of the name.  If I used any capital letters in the name it becomes unmatchable.

      The second issue is that you must cause a map replacement or the Lookup is never called and the defaultLookup is used and it simply returns the name of the lookup.

      I could not find any syntax that would call the no event lookup method:

      @Override
      public String lookup(String key) {
      

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            vy Volkan Yazici
            paulrubin37 Paul Rubin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment