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

[docs] Using Log4j 2 in Web Applications: Update example (Log4jWebLifeCycle is not visible)

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

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.2
    • 2.2
    • Documentation
    • None

    Description

      On the http://logging.apache.org/log4j/2.x/manual/webapp.html page you mention following code snippet:

          final Log4jWebLifeCycle webLifeCycle =     WebLoggerContextUtils.getWebLifeCycle(TestAsyncServlet.this.getServletContext());
      

      The problem is, Log4jWebLifeCycle is package-private and you can't use it.

      Attachments

        Activity

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

          People

            Unassigned Unassigned
            artemonster artemonster
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment