You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by gr...@apache.org on 2024/03/07 15:53:17 UTC
(logging-log4j2) 02/02: linked old version docs
This is an automated email from the ASF dual-hosted git repository.
grobmeier pushed a commit to branch ms12_conversion_of_md_files
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
commit 8fa1bac548409f4d9f19a800cf066364d1afd784
Author: Christian Grobmeier <cg...@grobmeier.de>
AuthorDate: Thu Mar 7 16:53:08 2024 +0100
linked old version docs
---
src/site/asciidoc/index.adoc | 24 ++++++++++++++++++++----
src/site/site.xml | 12 ++++++------
2 files changed, 26 insertions(+), 10 deletions(-)
diff --git a/src/site/asciidoc/index.adoc b/src/site/asciidoc/index.adoc
index d26fceb917..97f33baf74 100644
--- a/src/site/asciidoc/index.adoc
+++ b/src/site/asciidoc/index.adoc
@@ -34,11 +34,16 @@ The project is actively maintained by a link:team.html[team] of several voluntee
We share below some highlights from Log4j features.
-[source, java]
+[source,java]
----
-class Test {
- public void some() {
- System.out.println("Hello");
+import java.util.logging.LogManager;
+import java.util.logging.Logger;
+
+class Application {
+ private static final Logger logger = LogManager.getLogger(Application.class);
+
+ public void action() {
+ logger.info("Hello, World!");
}
}
----
@@ -76,6 +81,17 @@ Check out the link:manual/extending.html[Extending Log4j] page.
Log4j 3 runtime requires a minimum of Java 17.
For support for older versions of Java see the link:http://logging.apache.org/2.x[Log4j 2 site].
+[#older-releases]
+== Older releases
+
+Are looking for old versions of Log4j? While we recommend ot always use the latest versions, you can find the older versions here:
+
+* link:https://logging.apache.org/log4j/1.2/[Log4j 1.2 - End of Life]
+* link:https://logging.apache.org/log4j/log4j-2.3/[Log4j 2.3 - Java 6]
+* link:https://logging.apache.org/log4j/log4j-2.12.1/[Log4j 2.12.1 - Java 7]
+* link:https://logging.apache.org/log4j/2.x/[Log4j 2.x - Latest release for Java 8]
+
+
[#compat]
== Compatibility
diff --git a/src/site/site.xml b/src/site/site.xml
index 776c6b6b27..c0834bf067 100644
--- a/src/site/site.xml
+++ b/src/site/site.xml
@@ -270,12 +270,12 @@
<!-- <item name="Log4j-Scala" href="http://logging.apache.org/log4j/scala/index.html"/>-->
<!-- </menu>-->
- <menu name="Older Releases" inherit="top">
- <item name="Log4j 1.2 - End of Life" href="http://logging.apache.org/log4j/1.2/"/>
- <item name="Log4j 2.3 - Java 6" href="http://logging.apache.org/log4j/log4j-2.3/"/>
- <item name="Log4j 2.12.1 - Java 7" href="http://logging.apache.org/log4j/log4j-2.12.1/"/>
- <item name="Log4j 2.x - Latest release for Java 8" href="http://logging.apache.org/log4j/2.x/"/>
- </menu>
+<!-- <menu name="Older Releases" inherit="top">-->
+<!-- <item name="Log4j 1.2 - End of Life" href="http://logging.apache.org/log4j/1.2/"/>-->
+<!-- <item name="Log4j 2.3 - Java 6" href="http://logging.apache.org/log4j/log4j-2.3/"/>-->
+<!-- <item name="Log4j 2.12.1 - Java 7" href="http://logging.apache.org/log4j/log4j-2.12.1/"/>-->
+<!-- <item name="Log4j 2.x - Latest release for Java 8" href="http://logging.apache.org/log4j/2.x/"/>-->
+<!-- </menu>-->
<menu name="Internal Components" inherit="top">
<item name="API" href="log4j-api.html"/>