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

adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git


The following commit(s) were added to refs/heads/master by this push:
     new 144e982  HDDS-6108. Add slf4j and log4j.properties for tests in 
hadoop-ozone/client (#2925)
144e982 is described below

commit 144e98218aabe24d1fd06a145369c63c7428c521
Author: Wei-Chiu Chuang <[email protected]>
AuthorDate: Tue Jan 4 19:48:02 2022 +0800

    HDDS-6108. Add slf4j and log4j.properties for tests in hadoop-ozone/client 
(#2925)
---
 hadoop-ozone/client/pom.xml                        | 10 ++++++++++
 .../client/src/test/resources/log4j.properties     | 23 ++++++++++++++++++++++
 2 files changed, 33 insertions(+)

diff --git a/hadoop-ozone/client/pom.xml b/hadoop-ozone/client/pom.xml
index dbf5df3..f7cbd55 100644
--- a/hadoop-ozone/client/pom.xml
+++ b/hadoop-ozone/client/pom.xml
@@ -43,6 +43,16 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd";>
       <artifactId>junit</artifactId>
       <scope>test</scope>
     </dependency>
+    <dependency>
+      <groupId>log4j</groupId>
+      <artifactId>log4j</artifactId>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>slf4j-log4j12</artifactId>
+      <scope>test</scope>
+    </dependency>
   </dependencies>
 
   <build>
diff --git a/hadoop-ozone/client/src/test/resources/log4j.properties 
b/hadoop-ozone/client/src/test/resources/log4j.properties
new file mode 100644
index 0000000..3987866
--- /dev/null
+++ b/hadoop-ozone/client/src/test/resources/log4j.properties
@@ -0,0 +1,23 @@
+#
+#   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 configuration used during build and unit tests
+
+log4j.rootLogger=INFO,stdout
+log4j.threshold=ALL
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+log4j.appender.stdout.layout.ConversionPattern=%d{ISO8601} [%t] %-5p %c{2} 
(%F:%M(%L)) - %m%n

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to