public class LogUtils extends Object
Constructor and Description |
---|
LogUtils() |
Modifier and Type | Method and Description |
---|---|
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) |
public static void warn(Object o, String msg, PigWarning warningEnum, org.apache.commons.logging.Log log)
public static PigException getPigException(Throwable top)
public static void writeLog(Throwable t, String logFileName, org.apache.commons.logging.Log log, boolean verbose, String headerMessage)
public static void writeLog(Throwable t, String logFileName, org.apache.commons.logging.Log log, boolean verbose, String headerMessage, boolean displayFooter, boolean displayMessage)
Copyright © 2007-2017 The Apache Software Foundation