Interface AppenderComponentBuilder
-
- All Superinterfaces:
Builder<Component>
,ComponentBuilder<AppenderComponentBuilder>
,FilterableComponentBuilder<AppenderComponentBuilder>
public interface AppenderComponentBuilder extends FilterableComponentBuilder<AppenderComponentBuilder>
Builder for constructing Appender Components.- Since:
- 2.4
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AppenderComponentBuilder
add(LayoutComponentBuilder builder)
Adds a Layout to the Appender component.String
getName()
Returns the name of the Appender.-
Methods inherited from interface org.apache.logging.log4j.core.config.builder.api.ComponentBuilder
addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addComponent, getBuilder
-
Methods inherited from interface org.apache.logging.log4j.core.config.builder.api.FilterableComponentBuilder
add
-
-
-
-
Method Detail
-
add
AppenderComponentBuilder add(LayoutComponentBuilder builder)
Adds a Layout to the Appender component.- Parameters:
builder
- The LayoutComponentBuilder with all of its attributes set.- Returns:
- this builder.
-
getName
String getName()
Returns the name of the Appender.- Specified by:
getName
in interfaceComponentBuilder<AppenderComponentBuilder>
- Returns:
- the name of the Appender.
-
-