java.lang.Object | |
↳ | org.apache.log4j.pattern.PatternConverter |
![]() |
PatternConverter is an abstract class that provides the formatting functionality that derived classes need.
Conversion specifiers in a conversion patterns are parsed to individual PatternConverters. Each of which is responsible for converting an object in a converter specific manner.
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new pattern converter.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Formats an object into a string buffer.
| |||||||||||
This method returns the name of the conversion pattern.
| |||||||||||
This method returns the CSS style class that should be applied to
the LoggingEvent passed as parameter, which can be null.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Create a new pattern converter.
name | name for pattern converter. |
---|---|
style | CSS style for formatted output. |
Formats an object into a string buffer.
obj | event to format, may not be null. |
---|---|
toAppendTo | string buffer to which the formatted event will be appended. May not be null. |
This method returns the name of the conversion pattern. The name can be useful to certain Layouts such as HTMLLayout.
This method returns the CSS style class that should be applied to the LoggingEvent passed as parameter, which can be null. This information is currently used only by HTMLLayout.
e | null values are accepted |
---|