org.apache.hadoop.hive.common
Class LogUtils

java.lang.Object
  extended by org.apache.hadoop.hive.common.LogUtils

public class LogUtils
extends Object

Utilities common to logging operations.


Nested Class Summary
static class LogUtils.LogInitializationException
           
 
Constructor Summary
LogUtils()
           
 
Method Summary
static String initHiveExecLog4j()
          Initialize log4j for execution mode.
static String initHiveLog4j()
          Initialize log4j.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogUtils

public LogUtils()
Method Detail

initHiveLog4j

public static String initHiveLog4j()
                            throws LogUtils.LogInitializationException
Initialize log4j.

Returns:
an message suitable for display to the user
Throws:
LogUtils.LogInitializationException - if log4j fails to initialize correctly

initHiveExecLog4j

public static String initHiveExecLog4j()
                                throws LogUtils.LogInitializationException
Initialize log4j for execution mode.

Returns:
an message suitable for display to the user
Throws:
LogUtils.LogInitializationException - if log4j-exec fails to initialize correctly


Copyright © 2012 The Apache Software Foundation