org.apache.pig.impl.util
Class LogUtils

java.lang.Object
  extended by org.apache.pig.impl.util.LogUtils

public class LogUtils
extends Object


Constructor Summary
LogUtils()
           
 
Method Summary
static Exception getPermissionException(Exception top)
           
static PigException getPigException(Throwable top)
           
static void warn(Object o, String msg, PigWarning warningEnum, org.apache.commons.logging.Log log)
           
static void writeLog(String headerMessage, String message, String logFileName, org.apache.commons.logging.Log log)
           
static void writeLog(Throwable t, String logFileName, org.apache.commons.logging.Log log, boolean verbose, String headerMessage)
           
static void writeLog(Throwable t, String logFileName, org.apache.commons.logging.Log log, boolean verbose, String headerMessage, boolean displayFooter, boolean displayMessage)
           
 
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

warn

public static void warn(Object o,
                        String msg,
                        PigWarning warningEnum,
                        org.apache.commons.logging.Log log)

getPermissionException

public static Exception getPermissionException(Exception top)

getPigException

public static PigException getPigException(Throwable top)

writeLog

public static void writeLog(Throwable t,
                            String logFileName,
                            org.apache.commons.logging.Log log,
                            boolean verbose,
                            String headerMessage)

writeLog

public static void writeLog(Throwable t,
                            String logFileName,
                            org.apache.commons.logging.Log log,
                            boolean verbose,
                            String headerMessage,
                            boolean displayFooter,
                            boolean displayMessage)

writeLog

public static void writeLog(String headerMessage,
                            String message,
                            String logFileName,
                            org.apache.commons.logging.Log log)


Copyright © ${year} The Apache Software Foundation