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 SummaryModifier and TypeMethodDescriptionadd(LayoutComponentBuilder builder) Adds a Layout to the Appender component.getName()Returns the name of the Appender.Methods inherited from interface org.apache.logging.log4j.core.util.Builderbuild, getErrorPrefix, isValidMethods inherited from interface org.apache.logging.log4j.core.config.builder.api.ComponentBuilderaddAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addComponent, getBuilderMethods inherited from interface org.apache.logging.log4j.core.config.builder.api.FilterableComponentBuilderadd
- 
Method Details- 
addAdds a Layout to the Appender component.- Parameters:
- builder- The LayoutComponentBuilder with all of its attributes set.
- Returns:
- this builder.
 
- 
getNameString getName()Returns the name of the Appender.- Specified by:
- getNamein interface- ComponentBuilder<AppenderComponentBuilder>
- Returns:
- the name of the Appender.
 
 
-