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)

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.2
    • Fix Version/s: 2.2
    • Component/s: Documentation
    • Labels:
      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

            People

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

              Dates

              • Created:
                Updated:
                Resolved: