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

LoggerConfig has a method that should be protected instead of private.

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.0-beta6
    • 2.0-beta7
    • Core
    • None

    Description

      LoggerConfig has a protected constructor that has an argument called includeLocation (boolean). When log4j2 calls this constructor they use the private static boolean includeLocation method to determine this argument. Since it's private, I cannot call it. I would like to suggest this to be changed to a protected method instead. That way, I don't have to duplicate the method in order to call this constructor, especially since it's specifically for the protected constructor.

      Attachments

        Activity

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

          People

            Unassigned Unassigned
            kurt.lehrke Kurt Lehrke
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment