|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.logging.Formatter
org.apache.hadoop.util.LogFormatter
LogFactory
instead.
public class LogFormatter
Constructor Summary | |
---|---|
LogFormatter()
Deprecated. |
Method Summary | |
---|---|
String |
format(LogRecord record)
Deprecated. Format the given LogRecord. |
static Logger |
getLogger(String name)
Deprecated. Gets a logger and, as a side effect, installs this as the default formatter. |
static PrintStream |
getLogStream(Logger logger,
Level level)
Deprecated. Returns a stream that, when written to, adds log lines. |
static boolean |
hasLoggedSevere()
Deprecated. Returns true if this LogFormatter has
logged something at Level.SEVERE |
static String |
initFileHandler(Configuration conf,
String opName)
Deprecated. |
static void |
setShowThreadIDs(boolean showThreadIDs)
Deprecated. When set true, thread IDs are logged. |
static void |
showTime(boolean showTime)
Deprecated. When true, time is logged with each entry. |
Methods inherited from class java.util.logging.Formatter |
---|
formatMessage, getHead, getTail |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LogFormatter()
Method Detail |
---|
public static String initFileHandler(Configuration conf, String opName) throws IOException
IOException
public static Logger getLogger(String name)
public static void showTime(boolean showTime)
public static void setShowThreadIDs(boolean showThreadIDs)
public String format(LogRecord record)
format
in class Formatter
record
- the log record to be formatted.
public static boolean hasLoggedSevere()
true
if this LogFormatter
has
logged something at Level.SEVERE
public static PrintStream getLogStream(Logger logger, Level level)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |