|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.logging.Formatter
platypus.LogFormatter
public class LogFormatter
Creates a formatter for logging records. This format prints just the log message, preceded in the case of severe or warning errors by the words "Error: " or "Warning: " respectively. The date and time and the two-line format of the default Java console logger are thereby removed.
| Field Summary | |
|---|---|
private Literals |
lits
convenience variable for Literals access |
| Constructor Summary | |
|---|---|
LogFormatter()
|
|
| Method Summary | |
|---|---|
java.lang.String |
format(java.util.logging.LogRecord record)
The principal function: it accepts a LogRecord and returns the string that should be written out by the logger. |
| 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 |
| Field Detail |
|---|
private final Literals lits
| Constructor Detail |
|---|
public LogFormatter()
| Method Detail |
|---|
public java.lang.String format(java.util.logging.LogRecord record)
format in class java.util.logging.Formatterrecord - the LogRecord (which contains the severity and the string to log)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||