tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ankit Agarwal <>
Subject Re: Using Log4J2 2.8 (via the 1.2 API Bridge) for Tomcat8 Internal Logging - RollingFileAppender does not (cannot?) create new Log File
Date Thu, 13 Apr 2017 16:06:06 GMT


    On Thursday, April 13, 2017 8:58 AM, shivashankar manukondu <>

If you do not have any concern to use Timebased then you can try this option and also working
with Log4J2.
<TimeBasedTriggeringPolicy interval="1" modulate="true"/>
Thanks Siva. I'll try this out and see what happens.

On Thu, Apr 13, 2017 at 5:21 PM, Ankit Agarwal <> wrote:

    On Thursday, April 13, 2017 7:43 AM, "Berneburg, Cris J. - US" <>


-----Original Message-----
From: Berneburg, Cris J. - US
Sent: Thursday, April 13, 2017 10:35 AM
To: Tomcat Users List
Subject: RE: Using Log4J2 2.8 (via the 1.2 API Bridge) for Tomcat8 Internal Logging - RollingFileAppender
does not (cannot?) create new Log File

>> The only problem is that Tomcat only supports the Log4J
>> 1.x API. It doesn't natively support Log4J2 so we have
>> to use the 1.x -> 2.x Bridge and some things do not work.
> OK, can you get it basically working with the older Log4J
> instead, without the fancy stuff, just to investigate?
> Also, I don't know the interface between Tomcat/Log4J.  I
> would have guessed that Log4J would need to conform to the
> Apache Commons Logging API, not the other way around.  But
> again, I'm new to this.

Below is something interesting that Mark Thomas (current Tomcat maintainer) has to say about
Tomcat and Log4J/2:

-----Original Message-----
From: Mark Thomas []
Sent: Tuesday, April 11, 2017 1:22 PM
To: Tomcat Users List
Subject: Re: tomcat-embed-logging-juli not updated in Maven Central?

> log4j is no longer supported. Its replacement, log4j2, can
> hook directly into the java.util.logging framework. Therefore,
> there is no need for the separate modules. The classes from
> the tomcat-embed-logging-juli JAR were merged into the core JAR.

Thanks for your reply Cris. The note from Mark is interesting.
However, I couldn't find any instructions on how to get Log4J2 working natively, i.e., without
the 1.x -> 2.x Bridge. The Tomcat documentation hasn't been updated either.
I'd be happy to test out Log4J2 native logging in Tomcat as well as document the same, if
someone can point me to how to set this up.


Cris Berneburg
CACI Lead Software Engineer

����������ХF�V�7V'67&�&R�R��� âW6W'2�V�7V'67&�&TF��6B�6�R��&
pФf�"FF�F����6����G2�R���âW6W' 2ֆV�F��6B�6�R��&pР



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message