| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.logging.Formatter
org.deduced.utilities.LogFormatter
public class LogFormatter

Log Formatter used in deduced applications.
| Field Summary | |
|---|---|
private  java.lang.Object[] | 
arguments
list of arguments  | 
private  java.util.Date | 
date
Date used for printing  | 
private static java.lang.String | 
FORMAT
format to use while printing date  | 
private  java.text.MessageFormat | 
formatter
Message formatter used for printing  | 
private static java.lang.String | 
LINE_SEPARATOR
Line separator string.  | 
| Constructor Summary | |
|---|---|
LogFormatter()
 | 
|
| Method Summary | |
|---|---|
 java.lang.String | 
format(java.util.logging.LogRecord record)
Format the given LogRecord.  | 
private  void | 
printException(java.util.logging.LogRecord record,
               java.lang.StringBuilder sb)
print an exception stack trace in a log  | 
| 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 | 
| Field Detail | 
|---|
private java.util.Date date
private static final java.lang.String FORMAT
private java.text.MessageFormat formatter
private java.lang.Object[] arguments
private static final java.lang.String LINE_SEPARATOR
| Constructor Detail | 
|---|
public LogFormatter()
| Method Detail | 
|---|
public java.lang.String format(java.util.logging.LogRecord record)
format in class java.util.logging.Formatterrecord - the log record to be formatted.
private void printException(java.util.logging.LogRecord record,
                            java.lang.StringBuilder sb)
record - the log recordsb - the string builder in which to append the stack trace
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||