public static class LogHelper.CleanFormatter
extends java.util.logging.Formatter
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
FMT
Date format string.
|
private static java.lang.ThreadLocal<java.text.SimpleDateFormat> |
sdf
Date and time formatter.
|
private static java.lang.String |
SEP
Platform-specific line separator.
|
Constructor and Description |
---|
CleanFormatter() |
Modifier and Type | Method and Description |
---|---|
private void |
dumpThrowable(java.lang.Throwable t,
java.lang.StringBuilder buf)
Dump all details of the throwable into the given string buffer.
|
java.lang.String |
format(java.util.logging.LogRecord record)
Format the given log record and return the formatted string.
|
private static final java.lang.String FMT
private static final java.lang.ThreadLocal<java.text.SimpleDateFormat> sdf
private static final java.lang.String SEP
public java.lang.String format(java.util.logging.LogRecord record)
format
in class java.util.logging.Formatter
record
- The log record to be formatted.private void dumpThrowable(java.lang.Throwable t, java.lang.StringBuilder buf)
t
- The throwable to dump.buf
- String buffer into which details are written.