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

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

commit 7d83395d574bab3185f6dc61ad60aa729cbb5feb
Author: Piotr P. Karwasz <[email protected]>
AuthorDate: Wed Jan 3 14:40:51 2024 +0100

    Remove deprecated `packages` attribute from test configs
    
    The attribute is removed from all documentation and test configurations,
    except those that tes the `packages` attribute itself.
---
 log4j-1.2-api/src/test/resources/log-RouteWithMDC.xml | 2 +-
 log4j-1.2-api/src/test/resources/log4j2-config.xml    | 2 +-
 log4j-1.2-api/src/test/resources/logWithMDC.xml       | 2 +-
 src/site/asciidoc/manual/json-template-layout.adoc.vm | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/log4j-1.2-api/src/test/resources/log-RouteWithMDC.xml 
b/log4j-1.2-api/src/test/resources/log-RouteWithMDC.xml
index 73b4ff8c96..7de6461c4a 100644
--- a/log4j-1.2-api/src/test/resources/log-RouteWithMDC.xml
+++ b/log4j-1.2-api/src/test/resources/log-RouteWithMDC.xml
@@ -15,7 +15,7 @@
   ~ See the License for the specific language governing permissions and
   ~ limitations under the License.
   -->
-<Configuration name="ConfigTest" status="error" 
packages="org.apache.logging.log4j.test"
+<Configuration name="ConfigTest" status="error"
                monitorInterval="5">
   <Appenders>
     <Console name="STDOUT">
diff --git a/log4j-1.2-api/src/test/resources/log4j2-config.xml 
b/log4j-1.2-api/src/test/resources/log4j2-config.xml
index b520978aa7..8b47ed485e 100644
--- a/log4j-1.2-api/src/test/resources/log4j2-config.xml
+++ b/log4j-1.2-api/src/test/resources/log4j2-config.xml
@@ -15,7 +15,7 @@
   ~ See the License for the specific language governing permissions and
   ~ limitations under the License.
   -->
-<Configuration name="ConfigTest" status="error" 
packages="org.apache.logging.log4j.test"
+<Configuration name="ConfigTest" status="error"
                monitorInterval="5">
   <Appenders>
     <Console name="STDOUT">
diff --git a/log4j-1.2-api/src/test/resources/logWithMDC.xml 
b/log4j-1.2-api/src/test/resources/logWithMDC.xml
index d343fe2f4a..93ad097c59 100644
--- a/log4j-1.2-api/src/test/resources/logWithMDC.xml
+++ b/log4j-1.2-api/src/test/resources/logWithMDC.xml
@@ -15,7 +15,7 @@
   ~ See the License for the specific language governing permissions and
   ~ limitations under the License.
   -->
-<Configuration name="ConfigTest" status="error" 
packages="org.apache.logging.log4j.test"
+<Configuration name="ConfigTest" status="error"
                monitorInterval="5">
   <Appenders>
     <Console name="STDOUT">
diff --git a/src/site/asciidoc/manual/json-template-layout.adoc.vm 
b/src/site/asciidoc/manual/json-template-layout.adoc.vm
index f517785b4a..c9873d1ec4 100644
--- a/src/site/asciidoc/manual/json-template-layout.adoc.vm
+++ b/src/site/asciidoc/manual/json-template-layout.adoc.vm
@@ -1757,7 +1757,7 @@ these custom classes:
 .Log4j configuration employing custom `randomNumber` resolver
 ----
 <?xml version="1.0" encoding="UTF-8"?>
-<Configuration packages="com.acme.logging.log4j.layout.template.json">
+<Configuration>
   <!-- ... -->
   <JsonTemplateLayout>
     <EventTemplateAdditionalField

Reply via email to