|
JBoss Test 1.2.0.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.logging.Formatter
org.jboss.test.logging.jdk.PatternFormatter
public class PatternFormatter
A log4j style pattern formatter.
Field Summary | |
---|---|
protected int |
BUF_SIZE
|
static String |
DEFAULT_CONVERSION_PATTERN
Default pattern string for log output. |
protected int |
MAX_CAPACITY
|
static String |
TTCC_CONVERSION_PATTERN
A conversion pattern equivalent to the TTCCCLayout. |
Constructor Summary | |
---|---|
PatternFormatter()
Constructs a PatternLayout using the DEFAULT_LAYOUT_PATTERN. |
|
PatternFormatter(String pattern)
Constructs a PatternLayout using the supplied conversion pattern. |
Method Summary | |
---|---|
void |
activateOptions()
Does not do anything as options become effective |
protected PatternParser |
createPatternParser(String pattern)
Returns PatternParser used to parse the conversion string. |
String |
format(LogRecord event)
Produces a formatted string as specified by the conversion pattern. |
String |
getConversionPattern()
Returns the value of the ConversionPattern option. |
boolean |
ignoresThrowable()
The PatternLayout does not handle the throwable contained within LoggingEvents . |
void |
setConversionPattern(String conversionPattern)
Set the ConversionPattern option. |
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 |
---|
public static final String DEFAULT_CONVERSION_PATTERN
public static final String TTCC_CONVERSION_PATTERN
protected final int BUF_SIZE
protected final int MAX_CAPACITY
Constructor Detail |
---|
public PatternFormatter()
public PatternFormatter(String pattern)
pattern
- the patternMethod Detail |
---|
public void setConversionPattern(String conversionPattern)
conversionPattern
- the conversion patternpublic String getConversionPattern()
public void activateOptions()
public boolean ignoresThrowable()
LoggingEvents
. Thus, it returns
true
.
protected PatternParser createPatternParser(String pattern)
pattern
- the pattern
public String format(LogRecord event)
format
in class Formatter
|
JBoss Test 1.2.0.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |