diff --git a/logging-modules/log4j/pom.xml b/logging-modules/log4j/pom.xml
index 3434eddf4698..104fd6bda1f8 100644
--- a/logging-modules/log4j/pom.xml
+++ b/logging-modules/log4j/pom.xml
@@ -82,7 +82,7 @@
json
- ${java.io.tmpdir}/${maven.build.timestamp}/logfile.json
+ target/logfile.json
diff --git a/logging-modules/log4j/src/test/resources/log4j2.xml b/logging-modules/log4j/src/test/resources/log4j2.xml
index 1c60493cc4cf..883e54d83973 100644
--- a/logging-modules/log4j/src/test/resources/log4j2.xml
+++ b/logging-modules/log4j/src/test/resources/log4j2.xml
@@ -21,6 +21,13 @@
+
+
+
+
+
+
+