Class LoggerConfig.Builder<B extends LoggerConfig.Builder<B>>
java.lang.Object
org.apache.logging.log4j.core.config.LoggerConfig.Builder<B>
- Type Parameters:
B
- The type to build
- All Implemented Interfaces:
Builder<LoggerConfig>
- Direct Known Subclasses:
AsyncLoggerConfig.Builder
- Enclosing class:
- LoggerConfig
public static class LoggerConfig.Builder<B extends LoggerConfig.Builder<B>>
extends Object
implements Builder<LoggerConfig>
Builds LoggerConfig instances.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the object after all configuration has been set.getLevel()
Property[]
getRefs()
boolean
withAdditivity
(boolean additivity) withConfig
(Configuration config) withFilter
(Filter filter) withIncludeLocation
(String includeLocation) withLevelAndRefs
(String levelAndRefs) withLoggerName
(String loggerName) withProperties
(Property[] properties) withRefs
(AppenderRef[] refs) withtFilter
(Filter filter) Deprecated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.logging.log4j.core.util.Builder
getErrorPrefix, isValid
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
isAdditivity
public boolean isAdditivity() -
withAdditivity
-
getLevel
-
withLevel
-
getLevelAndRefs
-
withLevelAndRefs
-
getLoggerName
-
withLoggerName
-
getIncludeLocation
-
withIncludeLocation
-
getRefs
-
withRefs
-
getProperties
-
withProperties
-
getConfig
-
withConfig
-
getFilter
-
withtFilter
Deprecated.UsewithFilter(Filter)
instead -
withFilter
-
build
Description copied from interface:Builder
Builds the object after all configuration has been set. This will use default values for any unspecified attributes for the object.- Specified by:
build
in interfaceBuilder<B extends LoggerConfig.Builder<B>>
- Returns:
- the configured instance.
-
asBuilder
-
withFilter(Filter)
instead