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