This project has retired. For details please refer to its Attic page.
DebugLogging (Apache Crunch 0.7.0 API)

org.apache.crunch.test
Class DebugLogging

java.lang.Object
  extended by org.apache.crunch.test.DebugLogging

public final class DebugLogging
extends Object

Allows direct manipulation of the Hadoop log4j settings to aid in unit testing. Not recommended for production use.


Method Summary
static void enable(org.apache.log4j.Level level)
          Enables logging Hadoop output to the console using the pattern '%-4r [%t] %-5p %c %x - %m%n' at the specified Level.
static void enable(org.apache.log4j.Level level, org.apache.log4j.Appender appender)
          Enables logging to the given Appender at the specified Level.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

enable

public static void enable(org.apache.log4j.Level level)
Enables logging Hadoop output to the console using the pattern '%-4r [%t] %-5p %c %x - %m%n' at the specified Level.

Parameters:
level - The log4j level

enable

public static void enable(org.apache.log4j.Level level,
                          org.apache.log4j.Appender appender)
Enables logging to the given Appender at the specified Level.

Parameters:
level - The log4j level
appender - The log4j appender


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.