aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorJagadeesan <as2@us.ibm.com>2016-09-16 10:18:45 +0100
committerSean Owen <sowen@cloudera.com>2016-09-16 10:18:45 +0100
commitb2e27262440015f57bcfa888921c9cc017800910 (patch)
tree9c144b311a947ab65530c3a7fef04811d004187e /common
parentb72486f82dd9920135442191be5d384028e7fb41 (diff)
downloadspark-b2e27262440015f57bcfa888921c9cc017800910.tar.gz
spark-b2e27262440015f57bcfa888921c9cc017800910.tar.bz2
spark-b2e27262440015f57bcfa888921c9cc017800910.zip
[SPARK-17543] Missing log4j config file for tests in common/network-…
## What changes were proposed in this pull request? The Maven module `common/network-shuffle` does not have a log4j configuration file for its test cases. So, added `log4j.properties` in the directory `src/test/resources`. …shuffle] Author: Jagadeesan <as2@us.ibm.com> Closes #15108 from jagadeesanas2/SPARK-17543.
Diffstat (limited to 'common')
-rw-r--r--common/network-shuffle/src/test/resources/log4j.properties24
1 files changed, 24 insertions, 0 deletions
diff --git a/common/network-shuffle/src/test/resources/log4j.properties b/common/network-shuffle/src/test/resources/log4j.properties
new file mode 100644
index 0000000000..e73978908b
--- /dev/null
+++ b/common/network-shuffle/src/test/resources/log4j.properties
@@ -0,0 +1,24 @@
+#
+# 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.
+#
+
+# Set everything to be logged to the file target/unit-tests.log
+log4j.rootCategory=DEBUG, file
+log4j.appender.file=org.apache.log4j.FileAppender
+log4j.appender.file.append=true
+log4j.appender.file.file=target/unit-tests.log
+log4j.appender.file.layout=org.apache.log4j.PatternLayout
+log4j.appender.file.layout.ConversionPattern=%d{yy/MM/dd HH:mm:ss.SSS} %t %p %c{1}: %m%n