|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.logging.Formatter
org.apache.nutch.util.LogFormatter
Prints just the date and the log message.
Constructor Summary | |
LogFormatter()
|
Method Summary | |
String |
format(LogRecord record)
Format the given LogRecord. |
static Logger |
getLogger(String name)
Gets a logger and, as a side effect, installs this as the default formatter. |
static PrintStream |
getLogStream(Logger logger,
Level level)
Returns a stream that, when written to, adds log lines. |
static boolean |
hasLoggedSevere()
Returns true if this LogFormatter has
logged something at Level.SEVERE |
static void |
setShowThreadIDs(boolean showThreadIDs)
When set true, thread IDs are logged. |
static void |
showTime(boolean showTime)
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 Logger getLogger(String name)
public static void showTime(boolean showTime)
public static void setShowThreadIDs(boolean showThreadIDs)
public String format(LogRecord record)
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 |