You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "Matt Sicker (JIRA)" <ji...@apache.org> on 2014/07/20 03:05:38 UTC

[jira] [Closed] (LOG4J2-725) Add utility class similar to WebApplicationContextUtils for obtaining the LoggerContext in a servlet

     [ https://issues.apache.org/jira/browse/LOG4J2-725?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Sicker closed LOG4J2-725.
------------------------------

    Resolution: Fixed

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

> Add utility class similar to WebApplicationContextUtils for obtaining the LoggerContext in a servlet
> ----------------------------------------------------------------------------------------------------
>
>                 Key: LOG4J2-725
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-725
>             Project: Log4j 2
>          Issue Type: Improvement
>          Components: API
>    Affects Versions: 2.0
>         Environment: Particularly Servlet 3.0+ with asynchronous servlets.
>            Reporter: Matt Sicker
>            Assignee: Matt Sicker
>              Labels: log4j-web
>             Fix For: 2.0.1
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org