| java.lang.Object org.jivesoftware.util.log.format.PatternFormatter org.jivesoftware.util.log.format.ExtendedPatternFormatter
ExtendedPatternFormatter | public class ExtendedPatternFormatter extends PatternFormatter (Code) | | 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.
author: Peter Donald version: CVS $Revision: 37 $ $Date: 2004-10-20 23:08:43 -0700 (Wed, 20 Oct 2004) $ |
Method Summary | |
protected String | formatPatternRun(LogEvent event, PatternRun run) Formats a single pattern run (can be extended in subclasses).
Parameters: run - the pattern run to format. | protected int | getTypeIdFor(String type) Retrieve the type-id for a particular string. |
ExtendedPatternFormatter | public ExtendedPatternFormatter(String format)(Code) | | |
formatPatternRun | protected String formatPatternRun(LogEvent event, PatternRun run)(Code) | | Formats a single pattern run (can be extended in subclasses).
Parameters: run - the pattern run to format. the formatted result. |
getTypeIdFor | protected int getTypeIdFor(String type)(Code) | | Retrieve the type-id for a particular string.
Parameters: type - the string the type-id |
Fields inherited from org.jivesoftware.util.log.format.PatternFormatter | final protected static int MAX_TYPE(Code)(Java Doc)
|
|
|