[
https://issues.apache.org/jira/browse/LOG4J2-2857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dev updated LOG4J2-2857:
------------------------
Description:
Log4j2 is unable to log for servlets receiving AJAX(asynchronous) calls. This
is due to the fact that Log4jServletFilter which attaches the LoggerContext to
the thread is not allowed to configured with Async as a parameter for servlet
2.5 webapp
# <filter-mapping>
# <filter-name>log4jServletFilter</filter-name>
# <url-pattern>/*</url-pattern>
# <dispatcher>REQUEST</dispatcher>
# <dispatcher>FORWARD</dispatcher>
# <dispatcher>INCLUDE</dispatcher>
# <dispatcher>ERROR</dispatcher>
# <dispatcher>ASYNC</dispatcher>*<!-- Servlet 3.0 with disabled
auto-initialization only; +not supported in 2.5+ -->*
# </filter-mapping>
Above are web.xml config from log4j 2 documentation for Servlet 2.5 web app.
was:
Log4j2 is unable to log for servlets receiving AJAX(asynchronous) calls. This
is due to the fact that Log4jServletFilter which attaches the LoggerContext to
the thread is not allowed to configured with Aync.
# <filter-mapping>
# <filter-name>log4jServletFilter</filter-name>
# <url-pattern>/*</url-pattern>
# <dispatcher>REQUEST</dispatcher>
# <dispatcher>FORWARD</dispatcher>
# <dispatcher>INCLUDE</dispatcher>
# <dispatcher>ERROR</dispatcher>
# <dispatcher>ASYNC</dispatcher>*<!-- Servlet 3.0 with disabled
auto-initialization only; +not supported in 2.5+ -->*
# </filter-mapping>
Above are web.xml config from log4j 2 documentation for Servlet 2.5 web app.
> Log4j2 is unable to log for servlets receiving AJAX(asynchronous) calls for
> servlet 2.5 webapp
> ----------------------------------------------------------------------------------------------
>
> Key: LOG4J2-2857
> URL: https://issues.apache.org/jira/browse/LOG4J2-2857
> Project: Log4j 2
> Issue Type: Improvement
> Reporter: Dev
> Priority: Major
>
> Log4j2 is unable to log for servlets receiving AJAX(asynchronous) calls. This
> is due to the fact that Log4jServletFilter which attaches the LoggerContext
> to the thread is not allowed to configured with Async as a parameter for
> servlet 2.5 webapp
>
> # <filter-mapping>
> # <filter-name>log4jServletFilter</filter-name>
> # <url-pattern>/*</url-pattern>
> # <dispatcher>REQUEST</dispatcher>
> # <dispatcher>FORWARD</dispatcher>
> # <dispatcher>INCLUDE</dispatcher>
> # <dispatcher>ERROR</dispatcher>
> # <dispatcher>ASYNC</dispatcher>*<!-- Servlet 3.0 with disabled
> auto-initialization only; +not supported in 2.5+ -->*
> # </filter-mapping>
>
> Above are web.xml config from log4j 2 documentation for Servlet 2.5 web app.
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)