incubator-crunch-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gr...@apache.org
Subject git commit: Add test-specific log4j.properties file
Date Mon, 09 Jul 2012 11:21:11 GMT
Updated Branches:
  refs/heads/master 6bcd67df4 -> a3f8e4a6b


Add test-specific log4j.properties file

Add a log4j.properties file to be used when testing. The
difference with the main log4j.properties file is that this
version enables logging for org.apache.hadoop, which shows errors
that are otherwise hidden when running unit tests within the local
job runner.


Project: http://git-wip-us.apache.org/repos/asf/incubator-crunch/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-crunch/commit/a3f8e4a6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-crunch/tree/a3f8e4a6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-crunch/diff/a3f8e4a6

Branch: refs/heads/master
Commit: a3f8e4a6b53fe9117476de104cc38f5f5266430e
Parents: 6bcd67d
Author: Gabriel Reid <gabriel.reid@gmail.com>
Authored: Mon Jul 9 13:18:58 2012 +0200
Committer: Gabriel Reid <gabriel.reid@gmail.com>
Committed: Mon Jul 9 13:18:58 2012 +0200

----------------------------------------------------------------------
 src/test/resources/log4j.properties |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-crunch/blob/a3f8e4a6/src/test/resources/log4j.properties
----------------------------------------------------------------------
diff --git a/src/test/resources/log4j.properties b/src/test/resources/log4j.properties
new file mode 100644
index 0000000..c8173d7
--- /dev/null
+++ b/src/test/resources/log4j.properties
@@ -0,0 +1,11 @@
+# ***** Set root logger level to INFO and its only appender to A.
+log4j.logger.org.apache.crunch=info, A
+
+# Log warnings on Hadoop for the local runner when testing
+log4j.logger.org.apache.hadoop=warn, A
+
+# ***** A is set to be a ConsoleAppender.
+log4j.appender.A=org.apache.log4j.ConsoleAppender
+# ***** A uses PatternLayout.
+log4j.appender.A.layout=org.apache.log4j.PatternLayout
+log4j.appender.A.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n


Mime
View raw message