You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by vy...@apache.org on 2024/05/27 08:38:48 UTC
(logging-log4j2) branch 2.x updated: Anchor fixes
This is an automated email from the ASF dual-hosted git repository.
vy pushed a commit to branch 2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
The following commit(s) were added to refs/heads/2.x by this push:
new 7a99b243d2 Anchor fixes
7a99b243d2 is described below
commit 7a99b243d22f31dd6952fcedab29a47340bf9acd
Author: Volkan Yazıcı <vo...@yazi.ci>
AuthorDate: Mon May 27 10:38:45 2024 +0200
Anchor fixes
---
src/site/antora/modules/ROOT/pages/manual/async.adoc | 2 +-
src/site/antora/modules/ROOT/pages/manual/configuration.adoc | 4 ++--
src/site/antora/modules/ROOT/pages/manual/eventlogging.adoc | 3 ++-
src/site/antora/modules/ROOT/pages/manual/resource-logger.adoc | 2 +-
4 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/src/site/antora/modules/ROOT/pages/manual/async.adoc b/src/site/antora/modules/ROOT/pages/manual/async.adoc
index 464831d389..65d728c2ad 100644
--- a/src/site/antora/modules/ROOT/pages/manual/async.adoc
+++ b/src/site/antora/modules/ROOT/pages/manual/async.adoc
@@ -245,7 +245,7 @@ include::example$manual/configuration/custom-wait-strategy.properties[lines=17..
[#Location]
== Location information
-xref:manual/layouts.adoc#location-information[Computing the location information (i.e., the caller class, method, file, and line number) of a log event is an expensive operation.]
+xref:manual/layouts.adoc#LocationInformation[Computing the location information (i.e., the caller class, method, file, and line number) of a log event is an expensive operation.]
The impact on asynchronous loggers and appenders is even higher, since the component must decide whether to compute it or not **before** crossing the asynchronous barrier.
Hence, the location information is disabled by default for asynchronous loggers and appenders.
In order to enable it for a certain logger, set its xref:manual/configuration.adoc#logger-attributes-includeLocation[`includeLocation`] attribute to `true`.
diff --git a/src/site/antora/modules/ROOT/pages/manual/configuration.adoc b/src/site/antora/modules/ROOT/pages/manual/configuration.adoc
index 0b2c237303..6aa6b9ff5a 100644
--- a/src/site/antora/modules/ROOT/pages/manual/configuration.adoc
+++ b/src/site/antora/modules/ROOT/pages/manual/configuration.adoc
@@ -497,7 +497,7 @@ include::example$manual/configuration/loggers.properties[tags=loggers]
In the example above, we have four logger configurations.
They differ from each other regarding the level of log messages that they allow, whether
-xref:manual/layouts.adoc#location-information[location information]
+xref:manual/layouts.adoc#LocationInformation[location information]
will be printed, and which appenders will be used.
The table below summarizes the effects of each logger configuration:
@@ -623,7 +623,7 @@ https://logging.apache.org/log4j/2.x/javadoc/log4j-api/org/apache/logging/log4j/
.withLocation()]
methods.
-See xref:manual/layouts.adoc#location-information[Location information] for more details.
+See xref:manual/layouts.adoc#LocationInformation[Location information] for more details.
[id=logger-elements-appenderrefs]
==== Appender references
diff --git a/src/site/antora/modules/ROOT/pages/manual/eventlogging.adoc b/src/site/antora/modules/ROOT/pages/manual/eventlogging.adoc
index 707effd69e..bc2286da95 100644
--- a/src/site/antora/modules/ROOT/pages/manual/eventlogging.adoc
+++ b/src/site/antora/modules/ROOT/pages/manual/eventlogging.adoc
@@ -14,7 +14,8 @@
See the License for the specific language governing permissions and
limitations under the License.
////
-= Event Logging
+
+= Event Logger
The `EventLogger` class provides a mechanism for logging significant events
in an application using structured data. This approach is beneficial for
diff --git a/src/site/antora/modules/ROOT/pages/manual/resource-logger.adoc b/src/site/antora/modules/ROOT/pages/manual/resource-logger.adoc
index 90f5843b41..2283034f94 100644
--- a/src/site/antora/modules/ROOT/pages/manual/resource-logger.adoc
+++ b/src/site/antora/modules/ROOT/pages/manual/resource-logger.adoc
@@ -15,7 +15,7 @@
limitations under the License.
////
-= Resource Loggers
+= Resource Logger
== ScopedResourceLogger