|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.logging.log4j.core.pattern.AbstractPatternConverter
public abstract class AbstractPatternConverter
AbstractPatternConverter 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.
Constructor Summary | |
---|---|
protected |
AbstractPatternConverter(String name,
String style)
Create a new pattern converter. |
Method Summary | |
---|---|
String |
getName()
This method returns the name of the conversion pattern. |
String |
getStyleClass(Object e)
This method returns the CSS style class that should be applied to the LoggingEvent passed as parameter, which can be null. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.logging.log4j.core.pattern.PatternConverter |
---|
format |
Constructor Detail |
---|
protected AbstractPatternConverter(String name, String style)
name
- name for pattern converter.style
- CSS style for formatted output.Method Detail |
---|
public final String getName()
getName
in interface PatternConverter
public String getStyleClass(Object e)
getStyleClass
in interface PatternConverter
e
- null values are accepted
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |