You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by George Stanchev <Gs...@serena.com> on 2017/02/02 21:53:41 UTC

log4j in Tomcat 8.5

Hi,

I am transitioning from Tomcat 7.0 to Tomcat 8.5 and I was wondering what do I need to do to use log4j in 8.5. Reading this bug [1], it states that the support for the for log4j has been dropped since it is EOLed. Now, there is a comment on this issue from Mark that says that it is applied against version 9, but this bug was referenced from the changelog for 8.5 [2] that states:

<quote>
Correct a regression in the fix for 58588 that removed the entire org.apache.juli package from the embedded JARs rendering them unusable. (markt)
</quote>

which implies it has been applied to 8.5. So my question is, can I make Tomcat 8.5 use log4j?

George




[1] https://bz.apache.org/bugzilla/show_bug.cgi?id=58588
[2] http://tomcat.apache.org/tomcat-8.5-doc/changelog.html

Re: log4j in Tomcat 8.5

Posted by Mark Thomas <ma...@apache.org>.
On 02/02/17 21:53, George Stanchev wrote:
> Hi,
>
> I am transitioning from Tomcat 7.0 to Tomcat 8.5 and I was wondering what do I need to do to use log4j in 8.5. Reading this bug [1], it states that the support for the for log4j has been dropped since it is EOLed. Now, there is a comment on this issue from Mark that says that it is applied against version 9, but this bug was referenced from the changelog for 8.5 [2] that states:
>
> <quote>
> Correct a regression in the fix for 58588 that removed the entire org.apache.juli package from the embedded JARs rendering them unusable. (markt)
> </quote>
>
> which implies it has been applied to 8.5. So my question is, can I make Tomcat 8.5 use log4j?

log4j - no

log4j2 - yes

You'll need to use the standard log4j2 mechanism to capture 
java.util.logging output and redirect it.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org