Interface LoggableComponentBuilder<T extends ComponentBuilder<T>>
- All Superinterfaces:
Builder<Component>
,ComponentBuilder<T>
,FilterableComponentBuilder<T>
- All Known Subinterfaces:
LoggerComponentBuilder
,RootLoggerComponentBuilder
public interface LoggableComponentBuilder<T extends ComponentBuilder<T>>
extends FilterableComponentBuilder<T>
Common component builder for Logger and RootLogger elements.
- Since:
- 2.6
-
Method Summary
Modifier and TypeMethodDescriptionadd
(AppenderRefComponentBuilder assembler) Add an Appender reference to the Logger component.Methods inherited from interface org.apache.logging.log4j.core.util.Builder
build, getErrorPrefix, isValid
Methods inherited from interface org.apache.logging.log4j.core.config.builder.api.ComponentBuilder
addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addComponent, getBuilder, getName
Methods inherited from interface org.apache.logging.log4j.core.config.builder.api.FilterableComponentBuilder
add
-
Method Details
-
add
Add an Appender reference to the Logger component.- Parameters:
assembler
- The AppenderRefComponentBuilder with all of its attributes and sub-components set.- Returns:
- this Assembler.
-