|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.logging.Formatter
org.hackystat.utilities.logger.OneLineFormatter
public class OneLineFormatter
Provides a one line formatter for use with Hackystat logging. Supports optional date stamp prefix and optional appending of a newline.
Constructor Summary | |
---|---|
OneLineFormatter()
Default constructor that enables the date stamp and new line. |
|
OneLineFormatter(boolean enableDateStamp)
One line format string with optional date stamp. |
|
OneLineFormatter(boolean enableDateStamp,
boolean enableNewline)
One line format string with optional date stamp and optional newline. |
Method Summary | |
---|---|
java.lang.String |
format(java.util.logging.LogRecord record)
Formats the passed log string as a single line. |
Methods inherited from class java.util.logging.Formatter |
---|
formatMessage, getHead, getTail |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OneLineFormatter()
public OneLineFormatter(boolean enableDateStamp)
enableDateStamp
- If true, a date stamp is inserted.public OneLineFormatter(boolean enableDateStamp, boolean enableNewline)
enableDateStamp
- If true, a date stamp is inserted.enableNewline
- If true, a newline is always inserted.Method Detail |
---|
public java.lang.String format(java.util.logging.LogRecord record)
format
in class java.util.logging.Formatter
record
- A log record.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |