public class OneLineFormatter extends Formatter
Constructor and Description |
---|
OneLineFormatter() |
Modifier and Type | Method and Description |
---|---|
protected void |
addTimestamp(StringBuilder buf,
long timestamp) |
String |
format(LogRecord record) |
String |
getTimeFormat()
Obtain the format currently being used for time stamps in log messages.
|
void |
setTimeFormat(String timeFormat)
Specify the time format to use for time stamps in log messages.
|
formatMessage, getHead, getTail
public void setTimeFormat(String timeFormat)
timeFormat
- The format to use using the
SimpleDateFormat
syntaxpublic String getTimeFormat()
SimpleDateFormat
syntaxprotected void addTimestamp(StringBuilder buf, long timestamp)
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.