|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--org.apache.log.format.PatternFormatter
|
+--org.apache.log.format.ExtendedPatternFormatter
Formatter especially designed for debugging applications. This formatter extends the standard PatternFormatter to add two new possible expansions. These expansions are %{method} and %{thread}. In both cases the context map is first checked for values with specified key. This is to facilitate passing information about caller/thread when threads change (as in AsyncLogTarget). They then attempt to determine appropriate information dynamically.
| Inner classes inherited from class org.apache.log.format.PatternFormatter |
PatternFormatter.PatternRun |
| Fields inherited from class org.apache.log.format.PatternFormatter |
MAX_TYPE |
| Constructor Summary | |
ExtendedPatternFormatter(java.lang.String format)
|
|
| Method Summary | |
protected java.lang.String |
formatPatternRun(LogEvent event,
PatternFormatter.PatternRun run)
Formats a single pattern run (can be extended in subclasses). |
protected int |
getTypeIdFor(java.lang.String type)
Retrieve the type-id for a particular string. |
| Methods inherited from class org.apache.log.format.PatternFormatter |
format, getCategory, getContext, getContextMap, getContextStack, getMessage, getPriority, getRTime, getStackTrace, getTime, parse, setFormat |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ExtendedPatternFormatter(java.lang.String format)
| Method Detail |
protected int getTypeIdFor(java.lang.String type)
getTypeIdFor in class PatternFormattertype - the string
protected java.lang.String formatPatternRun(LogEvent event,
PatternFormatter.PatternRun run)
formatPatternRun in class PatternFormatterrun - the pattern run to format.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||