You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by pk...@apache.org on 2024/07/17 20:05:32 UTC

(logging-log4j2) 03/03: Fix additional links

This is an automated email from the ASF dual-hosted git repository.

pkarwasz pushed a commit to branch 2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git

commit fe4e20980f818f74721e61bb206380b138b80322
Author: Piotr P. Karwasz <pi...@karwasz.org>
AuthorDate: Wed Jul 17 22:04:16 2024 +0200

    Fix additional links
---
 .../logging/log4j/core/appender/MemoryMappedFileManager.java       | 4 +---
 src/changelog/2.10.0/.release-notes.adoc.ftl                       | 4 +++-
 src/changelog/2.22.0/.release-notes.adoc.ftl                       | 2 +-
 src/site/antora/modules/ROOT/pages/log4j-docker.adoc               | 2 +-
 src/site/antora/modules/ROOT/pages/manual/appenders.adoc           | 7 ++++---
 src/site/antora/modules/ROOT/pages/manual/installation.adoc        | 2 +-
 .../antora/modules/ROOT/pages/manual/json-template-layout.adoc     | 2 +-
 src/site/antora/modules/ROOT/pages/soa.adoc                        | 3 ++-
 src/site/antora/modules/ROOT/partials/concepts.adoc                | 2 +-
 9 files changed, 15 insertions(+), 13 deletions(-)

diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/MemoryMappedFileManager.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/MemoryMappedFileManager.java
index ad4fa76657..12ec5deb53 100644
--- a/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/MemoryMappedFileManager.java
+++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/MemoryMappedFileManager.java
@@ -47,9 +47,7 @@ import org.apache.logging.log4j.util.Constants;
  *      http://www.codeproject.com/Tips/683614/Things-to-Know-about-Memory-Mapped-File-in-Java</a>
  * @see <a href="https://bugs.openjdk.org/browse/JDK-6893654">JDK-6893654</a>
  * @see <a href="https://bugs.openjdk.org/browse/JDK-4724038">JDK-4724038</a>
- * @see <a
- *      href="http://stackoverflow.com/questions/9261316/memory-mapped-mappedbytebuffer-or-direct-bytebuffer-for-db-implementation">
- *      http://stackoverflow.com/questions/9261316/memory-mapped-mappedbytebuffer-or-direct-bytebuffer-for-db-implementation</a>
+ * @see <a href="https://stackoverflow.com/q/9261316/11748454">Memory-Mapped MappedByteBuffer or Direct ByteBuffer for DB Implementation?</a>
  *
  * @since 2.1
  */
diff --git a/src/changelog/2.10.0/.release-notes.adoc.ftl b/src/changelog/2.10.0/.release-notes.adoc.ftl
index a415042b2a..ea473caa07 100644
--- a/src/changelog/2.10.0/.release-notes.adoc.ftl
+++ b/src/changelog/2.10.0/.release-notes.adoc.ftl
@@ -56,7 +56,9 @@ Those errors should be reported to the tool vendor.
 During testing of the release it was found that one unit test fails when run on Windows.
 When building from source either use `mvn clean install -DskipTests` on Windows or run the build on a different operating system.
 The unit test failure is a problem in the test, not in Log4j.
-As always, pre-built distributions can be downloaded from http://www.apache.org/dist/logging/log4j/[] or the binaries JARs may be obtained from the Maven central repository.
+As always, pre-built distributions can be downloaded from
+https://downloads.apache.org/logging/log4j/[]
+or the binaries JARs may be obtained from the Maven central repository.
 
 Note that subsequent to the 2.9.0 release, for security reasons, `SerializedLayout` is deprecated and no longer used as default in the Socket and JMS appenders.
 `SerializedLayout` can still be used as before, but has to be specified explicitly.
diff --git a/src/changelog/2.22.0/.release-notes.adoc.ftl b/src/changelog/2.22.0/.release-notes.adoc.ftl
index 2aa9ae64b9..39123b21ce 100644
--- a/src/changelog/2.22.0/.release-notes.adoc.ftl
+++ b/src/changelog/2.22.0/.release-notes.adoc.ftl
@@ -21,7 +21,7 @@
 <#if release.date?has_content>Release date:: ${release.date}</#if>
 
 :cyclonedx-sbom-link: https://cyclonedx.org/capabilities/sbom/[CycloneDX Software Bill of Materials (SBOM)]
-:cyclonedx-vdr-link: https://cyclonedx.org/capabilities/vdr[CycloneDX Vulnerability Disclosure Report (VDR)]
+:cyclonedx-vdr-link: https://cyclonedx.org/capabilities/vdr/[CycloneDX Vulnerability Disclosure Report (VDR)]
 
 This releases provides a {cyclonedx-sbom-link} along with each artifact and contains bug fixes addressing issues in the JPMS & OSGi infrastructure overhauled in `2.21.0`, dependency updates, and some other minor fixes and improvements.
 
diff --git a/src/site/antora/modules/ROOT/pages/log4j-docker.adoc b/src/site/antora/modules/ROOT/pages/log4j-docker.adoc
index 3f21b93a91..a346c8ebb7 100644
--- a/src/site/antora/modules/ROOT/pages/log4j-docker.adoc
+++ b/src/site/antora/modules/ROOT/pages/log4j-docker.adoc
@@ -17,7 +17,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more
 
 = Log4j Docker
 
-Log4j Docker module offers https://docker.com[Docker]-specific utilities.
+Log4j Docker module offers https://www.docker.com/[Docker]-specific utilities.
 
 [#install]
 == Installation
diff --git a/src/site/antora/modules/ROOT/pages/manual/appenders.adoc b/src/site/antora/modules/ROOT/pages/manual/appenders.adoc
index 0c0d6cdaff..bb20bdad4c 100644
--- a/src/site/antora/modules/ROOT/pages/manual/appenders.adoc
+++ b/src/site/antora/modules/ROOT/pages/manual/appenders.adoc
@@ -292,7 +292,8 @@ maximum capacity.
 [#CassandraAppender]
 === CassandraAppender
 
-The CassandraAppender writes its output to an https://cassandra.apache.org/[Apache Cassandra]
+The CassandraAppender writes its output to an
+https://cassandra.apache.org/_/index.html[Apache Cassandra]
 database.
 A keyspace and table must be configured ahead of time, and the columns of that table are mapped in a configuration file.
 Each column can specify either a xref:manual/pattern-layout.adoc[]https://logging.apache.org/log4j/2.x/manual/layouts.html#PatternLayout[StringLayout] (e.g., a PatternLayout) along with an optional conversion type, or only a conversion type for `org.apache.logging.log4j.spi.ThreadContextMap` or
@@ -2171,7 +2172,7 @@ http://mongodb.github.io/mongo-java-driver/4.0/apidocs/mongodb-driver-core/com/m
 in the format `mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database.collection][?options]]`.
 
 |capped |boolean |Enable support for
-https://docs.mongodb.com/manual/core/capped-collections/[capped
+https://www.mongodb.com/docs/manual/core/capped-collections/[capped
 collections]
 
 |collectionSize |long |Specify the size in bytes of the capped collection
@@ -4362,7 +4363,7 @@ If not specified, the default system Charset will be used.
 default is 0 (infinite timeout, like `Socket.connect()` methods).
 
 |enterpriseNumber |integer |The IANA enterprise number as described in
-http://tools.ietf.org/html/rfc5424#section-7.2.2[RFC 5424]
+https://datatracker.ietf.org/doc/html/rfc5424#section-7.2.2[RFC 5424]
 
 |filter |Filter |A Filter to determine if the event should be handled by
 this Appender. More than one Filter may be used by using a
diff --git a/src/site/antora/modules/ROOT/pages/manual/installation.adoc b/src/site/antora/modules/ROOT/pages/manual/installation.adoc
index 2c1e21490f..f65cf7c621 100644
--- a/src/site/antora/modules/ROOT/pages/manual/installation.adoc
+++ b/src/site/antora/modules/ROOT/pages/manual/installation.adoc
@@ -16,7 +16,7 @@
 ////
 
 :jpl-link: https://openjdk.org/jeps/264[JPL (Java Platform Logging)]
-:jul-link: https://docs.oracle.com/en/java/javase/{java-target-version}/core/java-logging-overview.html[JUL (Java Logging)]
+:jul-link: https://docs.oracle.com/javase/{java-target-version}/docs/technotes/guides/logging/overview.html[JUL (Java Logging)]
 
 = Installation
 
diff --git a/src/site/antora/modules/ROOT/pages/manual/json-template-layout.adoc b/src/site/antora/modules/ROOT/pages/manual/json-template-layout.adoc
index 2b36a611dc..d1bf2c3f8d 100644
--- a/src/site/antora/modules/ROOT/pages/manual/json-template-layout.adoc
+++ b/src/site/antora/modules/ROOT/pages/manual/json-template-layout.adoc
@@ -471,7 +471,7 @@ The **default event template** modelling https://www.elastic.co/guide/en/ecs/cur
 Models https://github.com/logstash/log4j-jsonevent-layout[Logstash `json_event` pattern for Log4j]
 
 {project-github-url}/tree/2.x/log4j-layout-template-json/src/main/resources/GelfLayout.json[`GelfLayout.json`]::
-Models https://docs.graylog.org/en/3.1/pages/gelf.html#gelf-payload-specification[the Graylog Extended Log Format (GELF) payload specification] with additional `_thread` and `_logger` fields.
+Models https://go2docs.graylog.org/current/getting_in_log_data/gelf.html#GELFPayloadSpecification[the Graylog Extended Log Format (GELF) payload specification] with additional `_thread` and `_logger` fields.
 +
 [TIP]
 ====
diff --git a/src/site/antora/modules/ROOT/pages/soa.adoc b/src/site/antora/modules/ROOT/pages/soa.adoc
index 636dd508ad..75f6147da2 100644
--- a/src/site/antora/modules/ROOT/pages/soa.adoc
+++ b/src/site/antora/modules/ROOT/pages/soa.adoc
@@ -81,7 +81,8 @@ For example, https://12factor.net/logs[The Twelve-Factor App] and https://kubern
 
 * A *library* can act as proxy.
 It can tap into the logging API and forward it to an external service.
-For instance, https://docs.datadoghq.com/logs/log_collection/java[Datadog's Java Log Collector] uses this mechanism.
+For instance,
+https://docs.datadoghq.com/logs/log_collection/java/?tab=log4j2[Datadog's Java Log Collector] uses this mechanism.
 
 * An external *service* can act as a proxy, which applications can write logs to.
 For example, you can write to https://www.elastic.co/logstash[Logstash], a https://kubernetes.io/docs/concepts/cluster-administration/logging/#sidecar-container-with-a-logging-agent[Kubernetes logging agent sidecar], or a https://redis.io/glossary/redis-queue/[Redis queue] over a socket.
diff --git a/src/site/antora/modules/ROOT/partials/concepts.adoc b/src/site/antora/modules/ROOT/partials/concepts.adoc
index 57c3c4b42b..dfbab575dd 100644
--- a/src/site/antora/modules/ROOT/partials/concepts.adoc
+++ b/src/site/antora/modules/ROOT/partials/concepts.adoc
@@ -24,7 +24,7 @@
 
 :jcl-link: https://commons.apache.org/proper/commons-logging/[JCL (Apache Commons Logging)]
 :jpl-link: https://openjdk.org/jeps/264[JPL (Java Platform Logging)]
-:jul-link: https://docs.oracle.com/en/java/javase/{java-target-version}/core/java-logging-overview.html[JUL (Java Logging)]
+:jul-link: https://docs.oracle.com/javase/{java-target-version}/docs/technotes/guides/logging/overview.html[JUL (Java Logging)]
 :jboss-logging-link: https://github.com/jboss-logging/jboss-logging[JBoss Logging]
 
 // end::inc[]