This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push:
new b1f84abd1b Add a link to the Log4j docs for how to replace JULI with
Log4j
b1f84abd1b is described below
commit b1f84abd1bd5be6a92cab8c0f589d86314e8ed4e
Author: Mark Thomas <[email protected]>
AuthorDate: Tue Mar 11 08:43:52 2025 +0000
Add a link to the Log4j docs for how to replace JULI with Log4j
---
webapps/docs/changelog.xml | 8 ++++++++
webapps/docs/logging.xml | 15 ++++++++++++---
2 files changed, 20 insertions(+), 3 deletions(-)
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index 163e1c60e0..e01d48be81 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -146,6 +146,14 @@
</scode>
</changelog>
</subsection>
+ <subsection name="Web applications">
+ <changelog>
+ <add>
+ Documentation. Add a link to the Log4j documentation that describes how
+ to use Log4j rather than JULI for Tomcat's internal logging. (markt)
+ </add>
+ </changelog>
+ </subsection>
</section>
<section name="Tomcat 10.1.37 (schultz)" rtext="not released">
<subsection name="Catalina">
diff --git a/webapps/docs/logging.xml b/webapps/docs/logging.xml
index 764f9e7214..fa33e0ef0a 100644
--- a/webapps/docs/logging.xml
+++ b/webapps/docs/logging.xml
@@ -49,9 +49,11 @@
To configure Tomcat to use an alternative logging framework for its
internal logging, follow the instructions provided by the alternative
logging framework for redirecting logging for applications that use
- <code>java.util.logging</code>. Keep in mind that the alternative logging
- framework will need to be capable of working in an environment where
- different loggers with the same name may exist in different class
loaders.
+ <code>java.util.logging</code>. Links to some of these instructions are
+ provided towards the end of this page. Keep in mind that the alternative
+ logging framework will need to be capable of working in an environment
+ where different loggers with the same name may exist in different class
+ loaders.
</p>
<p>
@@ -425,5 +427,12 @@ java.util.logging.ConsoleHandler.encoding =
UTF-8]]></source>
</section>
+ <section name="Using Log4j">
+
+ <p>The Log4j project provides <a
+ href="https://logging.apache.org/log4j/2.x/jakarta.html#replace-tomcat"
+ >instructions for using Log4J for Tomcat's internal logging</a>.</p>
+
+ </section>
</body>
</document>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]