public final class LogFormatter
extends java.util.logging.Formatter
| Modifier and Type | Field and Description |
|---|---|
private static java.text.SimpleDateFormat |
DATE_FORMAT |
private static java.lang.String |
LINE_SEPARATOR |
| Constructor and Description |
|---|
LogFormatter() |
| Modifier and Type | Method and Description |
|---|---|
private void |
appendEclipseDebugLink(java.util.logging.LogRecord record,
java.lang.StringBuilder sb)
Appends a clickable link for the Eclipse IDE, which points to the file and line number where the Message was
created.
|
java.lang.String |
format(java.util.logging.LogRecord record) |
private java.lang.StackTraceElement |
getCallerStackFrame(java.lang.String callerName)
Gets the CallerStackFrame for the Class throwing the exception.
|
private static final java.lang.String LINE_SEPARATOR
private static final java.text.SimpleDateFormat DATE_FORMAT
public java.lang.String format(java.util.logging.LogRecord record)
format in class java.util.logging.Formatterprivate void appendEclipseDebugLink(java.util.logging.LogRecord record,
java.lang.StringBuilder sb)
record - the log record to be formatted.sb - the formatted log record (which is currently build.private java.lang.StackTraceElement getCallerStackFrame(java.lang.String callerName)
callerName - Name of the classCopyright © 2009 - 2018 SSE. All Rights Reserved.