|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.logging.Formatter
gps.util.LogFormatter
public class LogFormatter
formats log records
| Constructor Summary | |
|---|---|
LogFormatter()
dummy constructor |
|
LogFormatter(boolean debug)
constructs a log formatter object |
|
| Method Summary | |
|---|---|
java.lang.String |
format(java.util.logging.LogRecord record)
Format the given LogRecord. |
static void |
main(java.lang.String[] a)
a test stub for the format class |
static java.lang.String |
sprintf(java.lang.String fmt,
char x)
prints a formatted number following printf conventions |
static java.lang.String |
sprintf(java.lang.String fmt,
double x)
prints a formatted number following printf conventions |
static java.lang.String |
sprintf(java.lang.String fmt,
long x)
prints a formatted number following printf conventions |
static java.lang.String |
sprintf(java.lang.String fmt,
java.lang.String x)
prints a formatted number following printf conventions |
| Methods inherited from class java.util.logging.Formatter |
|---|
formatMessage, getHead, getTail |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LogFormatter()
public LogFormatter(boolean debug)
debug - debug or not| Method Detail |
|---|
public java.lang.String format(java.util.logging.LogRecord record)
format in class java.util.logging.Formatterrecord - the log record to be formatted.
public static java.lang.String sprintf(java.lang.String fmt,
double x)
fmt - the format stringx - the double to print
public static java.lang.String sprintf(java.lang.String fmt,
long x)
fmt - the format stringx - the long to print
public static java.lang.String sprintf(java.lang.String fmt,
char x)
fmt - the format stringx - the character to
public static java.lang.String sprintf(java.lang.String fmt,
java.lang.String x)
x - a string that represents the digits to print
public static void main(java.lang.String[] a)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||