Log4j 2
  1. Log4j 2
  2. LOG4J2-725

Add utility class similar to WebApplicationContextUtils for obtaining the LoggerContext in a servlet

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0.1
    • Component/s: API
    • Labels:
    • Environment:

      Particularly Servlet 3.0+ with asynchronous servlets.

      Description

      Spring provides a class called WebApplicationContextUtils which can be used to obtain the ApplicationContext from a ServletContext. Such a similar utility for obtaining the LoggerContext from a ServletContext would be quite useful for asynchronous servlets. In addition, a method to wrap a Runnable with this automatically would also be great since async servlets work via this interface.

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Closed Closed
        2m 33s 1 Matt Sicker 20/Jul/14 01:05
        Matt Sicker made changes -
        Field Original Value New Value
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Closed [ 6 ]
        Hide
        Matt Sicker added a comment -

        Added in revision 1611967. Documented both in manual and javadocs.

        Show
        Matt Sicker added a comment - Added in revision 1611967. Documented both in manual and javadocs.
        Matt Sicker created issue -

          People

          • Assignee:
            Matt Sicker
            Reporter:
            Matt Sicker
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development