Module io.jstach.rainbowgum.pattern
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 io.jstach.rainbowgum.pattern.format.PatternFormatterFactory
PatternFormatterFactory.CompositeFactory, PatternFormatterFactory.KeywordFactory
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(PatternConfig config, PatternKeyword node, @Nullable LogFormatter child) Creates a formatter from a keyword.
-
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.
-