You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pig.apache.org by ch...@apache.org on 2013/03/16 06:53:54 UTC

svn commit: r1457206 - in /pig/trunk: CHANGES.txt build.xml conf/test-log4j.properties

Author: cheolsoo
Date: Sat Mar 16 05:53:54 2013
New Revision: 1457206

URL: http://svn.apache.org/r1457206
Log:
PIG-3235: Add log4j.properties for unit tests (cheolsoo)

Added:
    pig/trunk/conf/test-log4j.properties
Modified:
    pig/trunk/CHANGES.txt
    pig/trunk/build.xml

Modified: pig/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/pig/trunk/CHANGES.txt?rev=1457206&r1=1457205&r2=1457206&view=diff
==============================================================================
--- pig/trunk/CHANGES.txt (original)
+++ pig/trunk/CHANGES.txt Sat Mar 16 05:53:54 2013
@@ -28,6 +28,8 @@ PIG-3174:  Remove rpm and deb artifacts 
 
 IMPROVEMENTS
 
+PIG-3235: Add log4j.properties for unit tests (cheolsoo)
+
 PIG-3236: parametrize snapshot and staging repo id (gkesavan via daijy)
 
 PIG-3244: Make PIG_HOME configurable (robert.schooley@gmail.com via daijy)

Modified: pig/trunk/build.xml
URL: http://svn.apache.org/viewvc/pig/trunk/build.xml?rev=1457206&r1=1457205&r2=1457206&view=diff
==============================================================================
--- pig/trunk/build.xml (original)
+++ pig/trunk/build.xml Sat Mar 16 05:53:54 2013
@@ -812,6 +812,7 @@
             <jvmarg line="${debugArgs}"/>
             <sysproperty key="java.security.krb5.realm" value="" />
             <sysproperty key="java.security.krb5.kdc" value="" />
+            <sysproperty key="log4j.configuration" value="file:${basedir}/conf/test-log4j.properties"/>
             <env key="MALLOC_ARENA_MAX" value="4"/>
             <classpath>
                 <pathelement location="${output.jarfile.withouthadoop}" />

Added: pig/trunk/conf/test-log4j.properties
URL: http://svn.apache.org/viewvc/pig/trunk/conf/test-log4j.properties?rev=1457206&view=auto
==============================================================================
--- pig/trunk/conf/test-log4j.properties (added)
+++ pig/trunk/conf/test-log4j.properties Sat Mar 16 05:53:54 2013
@@ -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 root logger level to INFO and its only appender to A1.
+log4j.rootLogger=INFO, A1
+
+# A1 is set to be a ConsoleAppender.
+log4j.appender.A1=org.apache.log4j.ConsoleAppender
+
+# A1 uses PatternLayout.
+log4j.appender.A1.layout=org.apache.log4j.PatternLayout
+log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n