Package org.apache.log4j.pattern
Class BridgePatternConverter
- java.lang.Object
-
- org.apache.log4j.helpers.PatternConverter
-
- org.apache.log4j.pattern.BridgePatternConverter
-
public final class BridgePatternConverter extends PatternConverter
The class implements the pre log4j 1.3 org.apache.log4j.helpers.PatternConverter contract by delegating to the log4j 1.3 pattern implementation.
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
handlesExceptions
Does pattern process exceptions.private LoggingEventPatternConverter[]
patternConverters
Pattern converters.private FormattingInfo[]
patternFields
Field widths and alignment corresponding to pattern converters.-
Fields inherited from class org.apache.log4j.helpers.PatternConverter
next
-
-
Constructor Summary
Constructors Constructor Description BridgePatternConverter(java.lang.String pattern)
Create a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
convert(LoggingEvent event)
Derived pattern converters must override this method in order to convert conversion specifiers in the correct way.void
format(java.lang.StringBuffer sbuf, LoggingEvent e)
Format event to string buffer.boolean
ignoresThrowable()
Will return false if any of the conversion specifiers in the pattern handlesExceptions
.-
Methods inherited from class org.apache.log4j.helpers.PatternConverter
spacePad
-
-
-
-
Field Detail
-
patternConverters
private LoggingEventPatternConverter[] patternConverters
Pattern converters.
-
patternFields
private FormattingInfo[] patternFields
Field widths and alignment corresponding to pattern converters.
-
handlesExceptions
private boolean handlesExceptions
Does pattern process exceptions.
-
-
Method Detail
-
convert
protected java.lang.String convert(LoggingEvent event)
Derived pattern converters must override this method in order to convert conversion specifiers in the correct way.- Specified by:
convert
in classPatternConverter
-
format
public void format(java.lang.StringBuffer sbuf, LoggingEvent e)
Format event to string buffer.- Overrides:
format
in classPatternConverter
- Parameters:
sbuf
- string buffer to receive formatted event, may not be null.e
- event to format, may not be null.
-
ignoresThrowable
public boolean ignoresThrowable()
Will return false if any of the conversion specifiers in the pattern handlesExceptions
.- Returns:
- true if the pattern formats any information from exceptions.
-
-