org.apache.log.format
public class ExtendedPatternFormatter extends PatternFormatter
Version: $Id: ExtendedPatternFormatter.java 30977 2004-07-30 03:57:54 -0500 (Fri, 30 Jul 2004) niclas $
| Field Summary | |
|---|---|
| int | m_callStackOffset |
| static int | TYPE_METHOD |
| static String | TYPE_METHOD_STR |
| static int | TYPE_THREAD |
| static String | TYPE_THREAD_STR |
| Constructor Summary | |
|---|---|
| ExtendedPatternFormatter(String format)
Creation of a new extended pattern formatter. | |
| ExtendedPatternFormatter(String format, int callStackOffset)
Creation of a new extended pattern formatter.
| |
| Method Summary | |
|---|---|
| protected String | formatPatternRun(LogEvent event, PatternRun run)
Formats a single pattern run (can be extended in subclasses).
|
| String | getMethod(LogEvent event)
Utility method to format category.
|
| String | getThread(LogEvent event)
Utility thread to format category.
|
| protected int | getTypeIdFor(String type)
Retrieve the type-id for a particular string.
|
Parameters: format the format string
Parameters: format the format string callStackOffset the offset
Parameters: event the log event run the pattern run to format.
Returns: the formatted result.
Parameters: event the event
Returns: the formatted string
Parameters: event the even
Returns: the formatted string
Parameters: type the string
Returns: the type-id