|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.resilientedge.util.logger.Formatter | +--com.resilientedge.util.logger.console.ConsoleFormatter
This class is a System Console implementation of a Formatter.
Field Summary | |
protected static java.lang.String |
DATE_AND_TIME_PATTERN
Description of the Field |
protected boolean |
verbose_
Description of the Field |
Constructor Summary | |
ConsoleFormatter()
Construct a Console Formatter in non-verbose mode. |
|
ConsoleFormatter(boolean verbose)
Construct a ConsoleFormatter in the supplied verbosity mode. |
Method Summary | |
void |
format(LogRecord logRecord)
This method configures the LogRecord with the fully-formatted message to be logged. |
protected void |
formatClassName(LogRecord logRecord,
java.lang.StringBuffer messageBuffer)
Adds formatted classname information to the supplied StringBuffer. |
protected void |
formatDateAndTime(LogRecord logRecord,
java.lang.StringBuffer messageBuffer)
Adds formatted Date and Time text to the supplied StringBuffer. |
protected void |
formatException(LogRecord logRecord,
java.lang.StringBuffer messageBuffer)
Adds formatted exception information to the supplied StringBuffer. |
protected void |
formatLevel(LogRecord logRecord,
java.lang.StringBuffer messageBuffer)
Adds formatted Level information to the supplied StringBuffer. |
protected void |
formatMessage(LogRecord logRecord,
java.lang.StringBuffer messageBuffer)
Adds formatted Message text to the supplied StringBuffer. |
protected void |
formatMethodName(LogRecord logRecord,
java.lang.StringBuffer messageBuffer)
Adds formatted method information to the supplied StringBuffer. |
protected void |
formatThreadName(LogRecord logRecord,
java.lang.StringBuffer messageBuffer)
Adds formatted thread information to the supplied StringBuffer. |
protected void |
formatTopic(LogRecord logRecord,
java.lang.StringBuffer messageBuffer)
Adds formatted Topic information to the supplied StringBuffer. |
Methods inherited from class com.resilientedge.util.logger.Formatter |
format, getLocale, setLocale |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected boolean verbose_
protected static final java.lang.String DATE_AND_TIME_PATTERN
Constructor Detail |
public ConsoleFormatter()
public ConsoleFormatter(boolean verbose)
verbose
- Method Detail |
public void format(LogRecord logRecord)
format
in class Formatter
logRecord
- protected void formatDateAndTime(LogRecord logRecord, java.lang.StringBuffer messageBuffer)
logRecord
- messageBuffer
- protected void formatLevel(LogRecord logRecord, java.lang.StringBuffer messageBuffer)
logRecord
- messageBuffer
- protected void formatTopic(LogRecord logRecord, java.lang.StringBuffer messageBuffer)
logRecord
- messageBuffer
- protected void formatMessage(LogRecord logRecord, java.lang.StringBuffer messageBuffer)
logRecord
- messageBuffer
- protected void formatClassName(LogRecord logRecord, java.lang.StringBuffer messageBuffer)
logRecord
- messageBuffer
- protected void formatMethodName(LogRecord logRecord, java.lang.StringBuffer messageBuffer)
logRecord
- messageBuffer
- protected void formatThreadName(LogRecord logRecord, java.lang.StringBuffer messageBuffer)
logRecord
- messageBuffer
- protected void formatException(LogRecord logRecord, java.lang.StringBuffer messageBuffer)
logRecord
- messageBuffer
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |