org.apache.hadoop.util
Class LogFormatter

java.lang.Object
  extended by java.util.logging.Formatter
      extended by org.apache.hadoop.util.LogFormatter

Deprecated. use LogFactory instead.

public class LogFormatter
extends Formatter


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

LogFormatter

public LogFormatter()
Deprecated. 
Method Detail

initFileHandler

public static String initFileHandler(Configuration conf,
                                     String opName)
                              throws IOException
Deprecated. 
Throws:
IOException

getLogger

public static Logger getLogger(String name)
Deprecated. 
Gets a logger and, as a side effect, installs this as the default formatter.


showTime

public static void showTime(boolean showTime)
Deprecated. 
When true, time is logged with each entry.


setShowThreadIDs

public static void setShowThreadIDs(boolean showThreadIDs)
Deprecated. 
When set true, thread IDs are logged.


format

public String format(LogRecord record)
Deprecated. 
Format the given LogRecord.

Specified by:
format in class Formatter
Parameters:
record - the log record to be formatted.
Returns:
a formatted log record

hasLoggedSevere

public static boolean hasLoggedSevere()
Deprecated. 
Returns true if this LogFormatter has logged something at Level.SEVERE


getLogStream

public static PrintStream getLogStream(Logger logger,
                                       Level level)
Deprecated. 
Returns a stream that, when written to, adds log lines.



Copyright © 2006 The Apache Software Foundation