Interface PatternFormatterFactory.CompositeFactory
- All Superinterfaces:
PatternFormatterFactory
- Enclosing interface:
PatternFormatterFactory
public static non-sealed interface PatternFormatterFactory.CompositeFactory
extends PatternFormatterFactory
A composite formatter factory expects possible children. For example
%keyword(child) .-
Nested Class Summary
Nested classes/interfaces inherited from interface PatternFormatterFactory
PatternFormatterFactory.CompositeFactory, PatternFormatterFactory.KeywordFactoryModifier and TypeInterfaceDescriptionstatic interfaceA composite formatter factory expects possible children.static interfaceA keyword formatter factory expects keywords and option list. -
Method Summary
Modifier and TypeMethodDescriptioncreate(PatternConfig config, PatternKeyword node, @Nullable LogFormatter child) Creates a formatter from a keyword.Methods inherited from interface PatternFormatterFactory
isExceptionFormatterModifier and TypeMethodDescriptiondefault booleanWhether this factory's formatter renders (or, like%nopex, deliberately suppresses) a throwable, and thus counts as the pattern having addressed exception rendering itself.
-
Method Details
-
create
Creates a formatter from a keyword.- Parameters:
config- config to help create formatter.node- current keyword info.child- the embedded child in the keyword or null if non is provided.- Returns:
- formatter.
-