Package org.jboss.logmanager
Class ExtFormatter.Delegating
- java.lang.Object
-
- java.util.logging.Formatter
-
- org.jboss.logmanager.ExtFormatter
-
- org.jboss.logmanager.ExtFormatter.Delegating
-
- Direct Known Subclasses:
TextBannerFormatter
- Enclosing class:
- ExtFormatter
public abstract static class ExtFormatter.Delegating extends ExtFormatter
A base class for formatters which wrap other formatters.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jboss.logmanager.ExtFormatter
ExtFormatter.Delegating
-
-
Field Summary
Fields Modifier and Type Field Description protected ExtFormatterdelegateThe delegate formatter.
-
Constructor Summary
Constructors Constructor Description Delegating(ExtFormatter delegate)Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringformat(ExtLogRecord record)Format a message using an extended log record.StringformatMessage(LogRecord record)StringgetHead(Handler h)StringgetTail(Handler h)booleanisCallerCalculationRequired()Determines whether or not this formatter will require caller, source level, information when a log record is formatted.-
Methods inherited from class org.jboss.logmanager.ExtFormatter
format, formatMessageLegacy, formatMessageNone, formatMessagePrintf, wrap
-
-
-
-
Field Detail
-
delegate
protected final ExtFormatter delegate
The delegate formatter.
-
-
Constructor Detail
-
Delegating
public Delegating(ExtFormatter delegate)
Construct a new instance.- Parameters:
delegate- the delegate formatter (must not benull)
-
-
Method Detail
-
format
public String format(ExtLogRecord record)
Description copied from class:ExtFormatterFormat a message using an extended log record.- Specified by:
formatin classExtFormatter- Parameters:
record- the log record- Returns:
- the formatted message
-
formatMessage
public String formatMessage(LogRecord record)
- Overrides:
formatMessagein classExtFormatter
-
isCallerCalculationRequired
public boolean isCallerCalculationRequired()
Description copied from class:ExtFormatterDetermines whether or not this formatter will require caller, source level, information when a log record is formatted.- Overrides:
isCallerCalculationRequiredin classExtFormatter- Returns:
trueif the formatter will need caller information, otherwisefalse- See Also:
LogRecord.getSourceClassName(),ExtLogRecord.getSourceFileName(),ExtLogRecord.getSourceLineNumber(),LogRecord.getSourceMethodName()
-
-