We are actually using log4j2, I should have been more clearer.
Does this mean we don't have to use specialized juli jar and adapters
and many of the stackoverflow answers are out of date? I have seen
answers saying download juli adapter version from tomcat version 7 and
use it for 9 or similar.
Regards,
Niranjan
On 6/29/21 12:24 AM, Mark Thomas wrote:
On 29/06/2021 01:11, Niranjan Rao wrote:
Greetings,
I wanted to setup log4j for tomcat logs and google searches seems to
indicate that this is possible. Many articles speak about downloading
tomcat-juli-adapters.jar from bin/extras directory.
I found out that for tomcat version 9, extras directory is last
present on version 9.0.14
(https://archive.apache.org/dist/tomcat/tomcat-9/v9.0.14/bin/).
Latter versions do not have extras directory.
Is tomcat-juli-adapters file no longer required? What will be the
best way to configure tomcat logs using log4j.
log4j was declared end of life in 2015. If you really need to use
log4j then there are some pointers here:
https://stackoverflow.com/questions/869945/how-to-send-java-util-logging-to-log4j
I'd recommend the answer from Emmanuel Bourg.
If you are using log4j2 then you can use:
https://logging.apache.org/log4j/2.x/log4j-jpl/index.html
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org