You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by ch...@apache.org on 2024/10/19 18:19:52 UTC
(kafka) branch trunk updated: KAFKA-17818 add log4j.properties to test-common and test-common-api (#17550)
This is an automated email from the ASF dual-hosted git repository.
chia7712 pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/kafka.git
The following commit(s) were added to refs/heads/trunk by this push:
new 6d804cea645 KAFKA-17818 add log4j.properties to test-common and test-common-api (#17550)
6d804cea645 is described below
commit 6d804cea6453fee463a059b28fbd5132c5153399
Author: Peter Lee <pe...@gmail.com>
AuthorDate: Sun Oct 20 02:19:45 2024 +0800
KAFKA-17818 add log4j.properties to test-common and test-common-api (#17550)
Reviewers: Chia-Ping Tsai <ch...@gmail.com>
---
test-common/src/test/resources/log4j.properties | 21 +++++++++++++++++++++
.../src/test/resources/log4j.properties | 21 +++++++++++++++++++++
2 files changed, 42 insertions(+)
diff --git a/test-common/src/test/resources/log4j.properties b/test-common/src/test/resources/log4j.properties
new file mode 100644
index 00000000000..91c909b99ad
--- /dev/null
+++ b/test-common/src/test/resources/log4j.properties
@@ -0,0 +1,21 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+log4j.rootLogger=INFO, stdout
+
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+log4j.appender.stdout.layout.ConversionPattern=[%d] %p %m (%c:%L)%n
+
+log4j.logger.org.apache.kafka=INFO
\ No newline at end of file
diff --git a/test-common/test-common-api/src/test/resources/log4j.properties b/test-common/test-common-api/src/test/resources/log4j.properties
new file mode 100644
index 00000000000..91c909b99ad
--- /dev/null
+++ b/test-common/test-common-api/src/test/resources/log4j.properties
@@ -0,0 +1,21 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+log4j.rootLogger=INFO, stdout
+
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+log4j.appender.stdout.layout.ConversionPattern=[%d] %p %m (%c:%L)%n
+
+log4j.logger.org.apache.kafka=INFO
\ No newline at end of file