public class TracerFormatter extends Formatter
| Constructor and Description |
|---|
TracerFormatter() |
TracerFormatter(String envName) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendEnvironmentName(StringBuilder sb) |
String |
format(LogRecord record)
Format the log record in this form:
<short date> <short time> <message level> <message>
|
String |
getDate(long millis)
Return a formatted date for the specified time.
|
protected void |
getThrown(LogRecord record,
StringBuilder sb) |
static DateFormat |
makeDateFormat()
Return a DateFormat object that uses the standard format and the UTC
timezone.
|
formatMessage, getHead, getTailpublic TracerFormatter()
public TracerFormatter(String envName)
public String getDate(long millis)
millis - the time in millisecondspublic String format(LogRecord record)
protected void appendEnvironmentName(StringBuilder sb)
protected void getThrown(LogRecord record, StringBuilder sb)
public static DateFormat makeDateFormat()
Copyright © 2024. All rights reserved.