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/07/05 12:10:17 UTC
(logging-log4j2) 04/04: Merge remote-tracking branch 'origin/2.x' into doc/2.x/cloud
This is an automated email from the ASF dual-hosted git repository.
vy pushed a commit to branch doc/2.x/cloud
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
commit 01b11072db0a8079aae050b1c98c0f528c0ad09d
Merge: e20572eab4 68b4fbc6de
Author: Volkan Yazıcı <vo...@yazi.ci>
AuthorDate: Fri Jul 5 14:10:17 2024 +0200
Merge remote-tracking branch 'origin/2.x' into doc/2.x/cloud
.../log4j/status/StatusLoggerLevelTest.java | 25 +
.../apache/logging/log4j/status/StatusLogger.java | 5 +-
.../rolling/RollingAppenderDirectCronTest.java | 102 +--
.../rolling/RollingAppenderDirectCronTest.xml} | 28 +-
log4j-jakarta-web/pom.xml | 1 +
log4j-parent/pom.xml | 6 +-
pom.xml | 2 +-
...ng_commons_logging.xml => 2703_log4j_debug.xml} | 6 +-
.../update_commons_logging_commons_logging.xml | 4 +-
...flapdoodle_embed_de_flapdoodle_embed_mongo.xml} | 4 +-
....xml => update_org_eclipse_jetty_jetty_bom.xml} | 4 +-
.../manual/appenders/servlet-appender.json | 23 +
.../manual/appenders/servlet-appender.properties | 28 +
.../examples/manual/appenders/servlet-appender.xml | 35 +-
.../manual/appenders/servlet-appender.yaml | 30 +
.../ROOT/examples/manual/webapp/AsyncServlet.java | 59 ++
.../modules/ROOT/examples/manual/webapp/jndi.xml | 50 +-
.../ROOT/examples/manual/webapp/log4j2-single.json | 48 ++
.../manual/webapp/log4j2-single.properties | 41 ++
.../ROOT/examples/manual/webapp/log4j2-single.xml | 49 ++
.../ROOT/examples/manual/webapp/log4j2-single.yaml | 44 ++
.../modules/ROOT/examples/manual/webapp/taglib.jsp | 89 +++
.../modules/ROOT/examples/manual/webapp/web.xml | 50 ++
src/site/antora/modules/ROOT/nav.adoc | 8 +-
src/site/antora/modules/ROOT/pages/javadoc.adoc | 7 +-
.../antora/modules/ROOT/pages/log4j-appserver.adoc | 50 --
.../antora/modules/ROOT/pages/log4j-cassandra.adoc | 6 +-
.../antora/modules/ROOT/pages/log4j-taglib.adoc | 55 --
src/site/antora/modules/ROOT/pages/log4j-web.adoc | 27 -
.../modules/ROOT/pages/manual/appenders.adoc | 56 ++
.../modules/ROOT/pages/manual/configuration.adoc | 3 +-
.../antora/modules/ROOT/pages/manual/lookups.adoc | 56 +-
.../antora/modules/ROOT/pages/manual/webapp.adoc | 805 +++++++++++++++------
.../manual/dependencies-log4j-1.2-api.adoc | 2 +
...pi.adoc => dependencies-log4j-jakarta-web.adoc} | 43 +-
.../manual/dependencies-log4j-taglib.adoc} | 32 +-
src/site/resources/.htaccess | 7 +-
37 files changed, 1329 insertions(+), 561 deletions(-)
diff --cc src/site/antora/modules/ROOT/pages/manual/lookups.adoc
index 6d61f07853,052f5d575d..76aaecb77d
--- a/src/site/antora/modules/ROOT/pages/manual/lookups.adoc
+++ b/src/site/antora/modules/ROOT/pages/manual/lookups.adoc
@@@ -73,30 -67,47 +67,30 @@@ be formatted as specified
----
[#DockerLookup]
- === Docker Lookup
+ == Docker Lookup
-The DockerLookup can be used to lookup attributes from the Docker container the application is running in.
-
-Log4j Docker provides access to the following container attributes:
-[cols="1m,4a"]
+[cols="1h,4"]
|===
-|Key |Description
-
-|containerId
-|The full id assigned to the container.
-
-|containerName
-|The name assigned to the container.
-
-|imageId
-|The id assigned to the image.
-
-|imageName
-|The name assigned to the image.
-
-|shortContainerId
-|The first 12 characters of the container id.
-
-|shortImageId
-|The first 12 characters of the image id.
+|Lookup ID |`docker`
+|Dependency |xref:log4j-docker.adoc[]
|===
-[source,xml]
-----
-<JsonTemplateLayout>
- <EventTemplateAdditionalField key="containerId" value="${docker:containerId}"/>
- <EventTemplateAdditionalField key="containerName" value="${docker:containerName}"/>
- <EventTemplateAdditionalField key="imageName" value="${docker:imageName}"/>
-</JsonTemplateLayout>
-----
+Docker Lookup queries https://docs.docker.com/engine/api/[the API of the Docker Engine] running your container.
+It supports the retrieval of following container attributes:
-This Lookup is subject to the requirements listed at xref:log4j-docker.adoc[Log4j Docker Support]
+[%header,cols="1m,4"]
+|===
+|Key |Description
+|containerId |Container ID
+|containerName |Container name
+|imageId |Container image ID
+|imageName |Container image name
+|shortContainerId |The first 12 characters of the container ID
+|shortImageId |The first 12 characters of the container image ID
+|===
[id=environment-lookup]
- === [[EnvironmentLookup]] Environment Lookup
+ == [[EnvironmentLookup]] Environment Lookup
The EnvironmentLookup allows systems to configure environment variables,
either in global files such as /etc/profile or in the startup scripts
@@@ -298,16 -308,9 +291,16 @@@ https://docs.oracle.com/javase/{java-ta
*Java's JMX module is not available on Android or on Google App Engine.*
[#KubernetesLookup]
- === Kubernetes Lookup
+ == Kubernetes Lookup
-For retrieving attributes using Fabric8's Kubernetes Client, see their https://github.com/fabric8io/kubernetes-client/blob/main/doc/KubernetesLog4j.md[Kubernetes Log4j Lookup].
+[cols="1h,4"]
+|===
+|Lookup ID |`k8s`
+|Dependency |{log4j-kubernetes-url}[Log4j Kubernetes of Fabric8]
+|===
+
+Kubernetes Lookup queries https://kubernetes.io/docs/concepts/overview/kubernetes-api/[the Kubernetes API] to retrieve certain information about the current container and its environment.
+Kubernetes Lookup is distributed as a part of Fabric8's Kubernetes Client, refer to {log4j-kubernetes-url}[its website] for details.
[#Log4jConfigLookup]
== Log4j Configuration Location Lookup