|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.logging.Formatter
com.gridsystems.config.app.PatternFormatter
public class PatternFormatter
Logging formatter with log4j-like style.
| Field Summary | |
|---|---|
protected java.lang.Object[] |
args
The message format arguments. |
protected java.util.Date |
date
The date to format. |
protected java.text.MessageFormat |
formatter
The formatter to use. |
protected java.lang.String |
pattern
The pattern. |
protected boolean |
showTrace
if true, the stack trace is dumped. |
| Constructor Summary | |
|---|---|
PatternFormatter()
Creates an instance with a default one line pattern. |
|
PatternFormatter(java.lang.String pattern,
boolean showTrace)
Creates an instance that will use the specified pattern. |
|
| Method Summary | |
|---|---|
java.lang.String |
format(java.util.logging.LogRecord record)
|
| 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 |
|---|
protected java.util.Date date
protected java.lang.Object[] args
protected java.text.MessageFormat formatter
protected java.lang.String pattern
protected boolean showTrace
| Constructor Detail |
|---|
public PatternFormatter()
The default pattern is {0,date,dd/MM/yyyy HH:mm:ss} {1} - {2}
public PatternFormatter(java.lang.String pattern,
boolean showTrace)
showTrace flag is set to true.
pattern - The pattern to use in this instanceshowTrace - true if we want attached exceptions stack traces to be dumped| Method Detail |
|---|
public java.lang.String format(java.util.logging.LogRecord record)
format in class java.util.logging.Formatter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||