Class DefaultConfigurationBuilder<T extends BuiltConfiguration>
java.lang.Object
org.apache.logging.log4j.core.config.builder.impl.DefaultConfigurationBuilder<T>
- Type Parameters:
T- The BuiltConfiguration type.
- All Implemented Interfaces:
ConfigurationBuilder<T>,Builder<T>
public class DefaultConfigurationBuilder<T extends BuiltConfiguration>
extends Object
implements ConfigurationBuilder<T>
- Since:
- 2.4
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(AppenderComponentBuilder builder) Adds an AppenderComponent.protected ConfigurationBuilder<T>add(Component parent, ComponentBuilder<?> builder) add(CustomLevelComponentBuilder builder) Adds a CustomLevel component.add(FilterComponentBuilder builder) Adds a Filter component.add(LoggerComponentBuilder builder) Adds a Logger component.add(RootLoggerComponentBuilder builder) Adds the root Logger component.add(ScriptComponentBuilder builder) Adds a ScriptComponent.add(ScriptFileComponentBuilder builder) Adds a ScriptFileComponent.addComponent(ComponentBuilder<?> builder) Adds a top level component.addProperty(String key, String value) Adds a Property key and value.addRootProperty(String key, String value) Add the properties for the root node.build()Builds the object after all configuration has been set.build(boolean initialize) Build the configuration and optionally initialize it.static voidnewAppender(String name, String type) Returns a builder for creating Appenders.newAppenderRef(String ref) Returns a builder for creating AppenderRefs.newAsyncLogger(String name) Returns a builder for creating Async Loggers.newAsyncLogger(String name, boolean includeLocation) Returns a builder for creating Async Loggers.newAsyncLogger(String name, String level) Returns a builder for creating Async Loggers.newAsyncLogger(String name, String level, boolean includeLocation) Returns a builder for creating Async Loggers.newAsyncLogger(String name, Level level) Returns a builder for creating Async Loggers.newAsyncLogger(String name, Level level, boolean includeLocation) Returns a builder for creating Async Loggers.Returns a builder for creating the async root Logger.newAsyncRootLogger(boolean includeLocation) Returns a builder for creating the async root Logger.newAsyncRootLogger(String level) Returns a builder for creating the async root Logger.newAsyncRootLogger(String level, boolean includeLocation) Returns a builder for creating the async root Logger.newAsyncRootLogger(Level level) Returns a builder for creating the async root Logger.newAsyncRootLogger(Level level, boolean includeLocation) Returns a builder for creating the async root Logger.<B extends ComponentBuilder<B>>
ComponentBuilder<B>newComponent(String type) Returns a builder for creating generic components.<B extends ComponentBuilder<B>>
ComponentBuilder<B>newComponent(String name, String type) Returns a builder for creating generic components.<B extends ComponentBuilder<B>>
ComponentBuilder<B>newComponent(String name, String type, String value) Returns a builder for creating generic components.newCustomLevel(String name, int level) Returns a builder for creating CustomLevelsReturns a builder for creating Filters.newFilter(String type, Filter.Result onMatch, Filter.Result onMismatch) Returns a builder for creating Filters.newKeyValuePair(String key, String value) Returns a builder for creating KeyValuePair:sReturns a builder for creating Layouts.Returns a builder for creating Loggers.Returns a builder for creating Loggers.Returns a builder for creating Loggers.Returns a builder for creating Loggers.Returns a builder for creating Loggers.Returns a builder for creating Loggers.newProperty(String name, String value) Returns a builder for creating Property:sReturns a builder for creating the root Logger.newRootLogger(boolean includeLocation) Returns a builder for creating the root Logger.newRootLogger(String level) Returns a builder for creating the root Logger.newRootLogger(String level, boolean includeLocation) Returns a builder for creating the root Logger.newRootLogger(Level level) Returns a builder for creating the root Logger.newRootLogger(Level level, boolean includeLocation) Returns a builder for creating the root Logger.Returns a builder for creating Async Loggers.newScriptFile(String path) Returns a builder for creating Async Loggers.newScriptFile(String name, String path) Returns a builder for creating Async Loggers.setAdvertiser(String advertiser) Set the Advertiser Plugin name.setConfigurationName(String name) Set the name of the configuration.setConfigurationSource(ConfigurationSource configurationSource) Set the ConfigurationSource.setDestination(String destination) Specifies the destination for StatusLogger events.voidsetLoggerContext(LoggerContext loggerContext) Sets the logger context.setMonitorInterval(String intervalSeconds) Sets the interval at which the configuration file should be checked for changes.setPackages(String packages) Sets the list of packages to search for plugins.setShutdownHook(String flag) Sets whether the shutdown hook should be disabled.setShutdownTimeout(long timeout, TimeUnit timeUnit) How long appenders and background tasks will get to shutdown when the JVM shuts down.setStatusLevel(Level level) Sets the level of the StatusLogger.setVerbosity(String verbosity) Deprecated.This method is ineffective and only kept for binary backward compatibility.Constructs an XML configuration from this builder.voidwriteXmlConfiguration(OutputStream output) Constructs an XML configuration from this builder.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.logging.log4j.core.util.Builder
getErrorPrefix, isValid
-
Constructor Details
-
DefaultConfigurationBuilder
public DefaultConfigurationBuilder() -
DefaultConfigurationBuilder
-
-
Method Details
-
formatXml
public static void formatXml(Source source, Result result) throws TransformerConfigurationException, TransformerFactoryConfigurationError, TransformerException -
add
-
add
Description copied from interface:ConfigurationBuilderAdds an AppenderComponent.- Specified by:
addin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
builder- The AppenderComponentBuilder with all of its attributes and sub components set.- Returns:
- this builder instance.
-
addComponent
Description copied from interface:ConfigurationBuilderAdds a top level component.- Specified by:
addComponentin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
builder- The ComponentBuilder with all of its attributes and sub components set.- Returns:
- this builder instance.
-
add
Description copied from interface:ConfigurationBuilderAdds a CustomLevel component.- Specified by:
addin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
builder- The CustomLevelComponentBuilder with all of its attributes set.- Returns:
- this builder instance.
-
add
Description copied from interface:ConfigurationBuilderAdds a Filter component.- Specified by:
addin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
builder- the FilterComponentBuilder with all of its attributes and sub components set.- Returns:
- this builder instance.
-
add
Description copied from interface:ConfigurationBuilderAdds a ScriptComponent.- Specified by:
addin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
builder- The ScriptComponentBuilder with all of its attributes and sub components set.- Returns:
- this builder instance.
-
add
Description copied from interface:ConfigurationBuilderAdds a ScriptFileComponent.- Specified by:
addin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
builder- The ScriptFileComponentBuilder with all of its attributes and sub components set.- Returns:
- this builder instance.
-
add
Description copied from interface:ConfigurationBuilderAdds a Logger component.- Specified by:
addin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
builder- The LoggerComponentBuilder with all of its attributes and sub components set.- Returns:
- this builder instance.
-
add
Description copied from interface:ConfigurationBuilderAdds the root Logger component.- Specified by:
addin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
builder- The RootLoggerComponentBuilder with all of its attributes and sub components set.- Returns:
- this builder instance.
-
addProperty
Description copied from interface:ConfigurationBuilderAdds a Property key and value.- Specified by:
addPropertyin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
key- The property key.value- The property value.- Returns:
- this builder instance.
-
build
Description copied from interface:BuilderBuilds the object after all configuration has been set. This will use default values for any unspecified attributes for the object.- Specified by:
buildin interfaceBuilder<T extends BuiltConfiguration>- Returns:
- the configured instance.
-
build
Description copied from interface:ConfigurationBuilderBuild the configuration and optionally initialize it.- Specified by:
buildin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
initialize- true if the configuration should be initialized, false otherwise. Generally, Configurations should not be initialized when they are constructed.- Returns:
- The constructed Configuration.
-
writeXmlConfiguration
Description copied from interface:ConfigurationBuilderConstructs an XML configuration from this builder.- Specified by:
writeXmlConfigurationin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
output- OutputStream to write to, will not be closed- Throws:
IOException
-
toXmlConfiguration
Description copied from interface:ConfigurationBuilderConstructs an XML configuration from this builder.- Specified by:
toXmlConfigurationin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Returns:
- XML configuration
-
newScript
Description copied from interface:ConfigurationBuilderReturns a builder for creating Async Loggers.- Specified by:
newScriptin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
name- The name of the Logger.language- The script languagetext- The script to execute.- Returns:
- A new ScriptComponentBuilder.
-
newScriptFile
Description copied from interface:ConfigurationBuilderReturns a builder for creating Async Loggers.- Specified by:
newScriptFilein interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
path- The location of the script file.- Returns:
- A new ScriptFileComponentBuilder.
-
newScriptFile
Description copied from interface:ConfigurationBuilderReturns a builder for creating Async Loggers.- Specified by:
newScriptFilein interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
name- The name of the script file.path- The location of the script file.- Returns:
- A new ScriptFileComponentBuilder.
-
newAppender
Description copied from interface:ConfigurationBuilderReturns a builder for creating Appenders.- Specified by:
newAppenderin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
name- The name of the Appender.type- The Plugin type of the Appender.- Returns:
- A new AppenderComponentBuilder.
-
newAppenderRef
Description copied from interface:ConfigurationBuilderReturns a builder for creating AppenderRefs.- Specified by:
newAppenderRefin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
ref- The name of the Appender being referenced.- Returns:
- A new AppenderRefComponentBuilder.
-
newAsyncLogger
Description copied from interface:ConfigurationBuilderReturns a builder for creating Async Loggers.- Specified by:
newAsyncLoggerin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
name- The name of the Logger.- Returns:
- A new LoggerComponentBuilder.
-
newAsyncLogger
Description copied from interface:ConfigurationBuilderReturns a builder for creating Async Loggers.- Specified by:
newAsyncLoggerin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
name- The name of the Logger.includeLocation- If true include location information.- Returns:
- A new LoggerComponentBuilder.
-
newAsyncLogger
Description copied from interface:ConfigurationBuilderReturns a builder for creating Async Loggers.- Specified by:
newAsyncLoggerin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
name- The name of the Logger.level- The logging Level to be assigned to the Logger.- Returns:
- A new LoggerComponentBuilder.
-
newAsyncLogger
Description copied from interface:ConfigurationBuilderReturns a builder for creating Async Loggers.- Specified by:
newAsyncLoggerin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
name- The name of the Logger.level- The logging Level to be assigned to the Logger.includeLocation- If true include location information.- Returns:
- A new LoggerComponentBuilder.
-
newAsyncLogger
Description copied from interface:ConfigurationBuilderReturns a builder for creating Async Loggers.- Specified by:
newAsyncLoggerin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
name- The name of the Logger.level- The logging Level to be assigned to the Logger.- Returns:
- A new LoggerComponentBuilder.
-
newAsyncLogger
Description copied from interface:ConfigurationBuilderReturns a builder for creating Async Loggers.- Specified by:
newAsyncLoggerin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
name- The name of the Logger.level- The logging Level to be assigned to the Logger.includeLocation- If true include location information.- Returns:
- A new LoggerComponentBuilder.
-
newAsyncRootLogger
Description copied from interface:ConfigurationBuilderReturns a builder for creating the async root Logger.- Specified by:
newAsyncRootLoggerin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Returns:
- A new RootLoggerComponentBuilder.
-
newAsyncRootLogger
Description copied from interface:ConfigurationBuilderReturns a builder for creating the async root Logger.- Specified by:
newAsyncRootLoggerin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
includeLocation- If true include location information.- Returns:
- A new RootLoggerComponentBuilder.
-
newAsyncRootLogger
Description copied from interface:ConfigurationBuilderReturns a builder for creating the async root Logger.- Specified by:
newAsyncRootLoggerin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
level- The logging Level to be assigned to the root Logger.- Returns:
- A new RootLoggerComponentBuilder.
-
newAsyncRootLogger
Description copied from interface:ConfigurationBuilderReturns a builder for creating the async root Logger.- Specified by:
newAsyncRootLoggerin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
level- The logging Level to be assigned to the root Logger.includeLocation- If true include location information.- Returns:
- A new RootLoggerComponentBuilder.
-
newAsyncRootLogger
Description copied from interface:ConfigurationBuilderReturns a builder for creating the async root Logger.- Specified by:
newAsyncRootLoggerin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
level- The logging Level to be assigned to the root Logger.- Returns:
- A new RootLoggerComponentBuilder.
-
newAsyncRootLogger
Description copied from interface:ConfigurationBuilderReturns a builder for creating the async root Logger.- Specified by:
newAsyncRootLoggerin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
level- The logging Level to be assigned to the root Logger.includeLocation- If true include location information.- Returns:
- A new RootLoggerComponentBuilder.
-
newComponent
Description copied from interface:ConfigurationBuilderReturns a builder for creating generic components.- Specified by:
newComponentin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Type Parameters:
B- ComponentBuilder target type- Parameters:
type- The Plugin type of the component.- Returns:
- A new ComponentBuilder.
-
newComponent
Description copied from interface:ConfigurationBuilderReturns a builder for creating generic components.- Specified by:
newComponentin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Type Parameters:
B- ComponentBuilder target type- Parameters:
name- The name of the component (may be null).type- The Plugin type of the component.- Returns:
- A new ComponentBuilder.
-
newComponent
public <B extends ComponentBuilder<B>> ComponentBuilder<B> newComponent(String name, String type, String value) Description copied from interface:ConfigurationBuilderReturns a builder for creating generic components.- Specified by:
newComponentin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Type Parameters:
B- ComponentBuilder target type- Parameters:
name- The name of the component (may be null).type- The Plugin type of the component.value- The value of the component.- Returns:
- A new ComponentBuilder.
-
newProperty
Description copied from interface:ConfigurationBuilderReturns a builder for creating Property:s- Specified by:
newPropertyin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
name- The name of the property.value- The value of the component.- Returns:
- A new PropertyComponentBuilder.
-
newKeyValuePair
Description copied from interface:ConfigurationBuilderReturns a builder for creating KeyValuePair:s- Specified by:
newKeyValuePairin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
key- The namevalue- The value- Returns:
- A new KeyValuePairComponentBuilder.
-
newCustomLevel
Description copied from interface:ConfigurationBuilderReturns a builder for creating CustomLevels- Specified by:
newCustomLevelin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
name- The name of the custom level.level- The integer value to be assigned to the level.- Returns:
- A new CustomLevelComponentBuilder.
-
newFilter
public FilterComponentBuilder newFilter(String type, Filter.Result onMatch, Filter.Result onMismatch) Description copied from interface:ConfigurationBuilderReturns a builder for creating Filters.- Specified by:
newFilterin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
type- The Plugin type of the Filter.onMatch- "ACCEPT", "DENY", or "NEUTRAL"onMismatch- "ACCEPT", "DENY", or "NEUTRAL"- Returns:
- A new FilterComponentBuilder.
-
newFilter
Description copied from interface:ConfigurationBuilderReturns a builder for creating Filters.- Specified by:
newFilterin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
type- The Plugin type of the Filter.onMatch- "ACCEPT", "DENY", or "NEUTRAL"onMismatch- "ACCEPT", "DENY", or "NEUTRAL"- Returns:
- A new FilterComponentBuilder.
-
newLayout
Description copied from interface:ConfigurationBuilderReturns a builder for creating Layouts.- Specified by:
newLayoutin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
type- The Plugin type of the Layout.- Returns:
- A new LayoutComponentBuilder.
-
newLogger
Description copied from interface:ConfigurationBuilderReturns a builder for creating Loggers.- Specified by:
newLoggerin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
name- The name of the Logger.- Returns:
- A new LoggerComponentBuilder.
-
newLogger
Description copied from interface:ConfigurationBuilderReturns a builder for creating Loggers.- Specified by:
newLoggerin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
name- The name of the Logger.includeLocation- If true include location information.- Returns:
- A new LoggerComponentBuilder.
-
newLogger
Description copied from interface:ConfigurationBuilderReturns a builder for creating Loggers.- Specified by:
newLoggerin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
name- The name of the Logger.level- The logging Level to be assigned to the Logger.- Returns:
- A new LoggerComponentBuilder.
-
newLogger
Description copied from interface:ConfigurationBuilderReturns a builder for creating Loggers.- Specified by:
newLoggerin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
name- The name of the Logger.level- The logging Level to be assigned to the Logger.includeLocation- If true include location information.- Returns:
- A new LoggerComponentBuilder.
-
newLogger
Description copied from interface:ConfigurationBuilderReturns a builder for creating Loggers.- Specified by:
newLoggerin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
name- The name of the Logger.level- The logging Level to be assigned to the Logger.- Returns:
- A new LoggerComponentBuilder.
-
newLogger
Description copied from interface:ConfigurationBuilderReturns a builder for creating Loggers.- Specified by:
newLoggerin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
name- The name of the Logger.level- The logging Level to be assigned to the Logger.includeLocation- If true include location information.- Returns:
- A new LoggerComponentBuilder.
-
newRootLogger
Description copied from interface:ConfigurationBuilderReturns a builder for creating the root Logger.- Specified by:
newRootLoggerin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Returns:
- A new RootLoggerComponentBuilder.
-
newRootLogger
Description copied from interface:ConfigurationBuilderReturns a builder for creating the root Logger.- Specified by:
newRootLoggerin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
includeLocation- If true include location information.- Returns:
- A new RootLoggerComponentBuilder.
-
newRootLogger
Description copied from interface:ConfigurationBuilderReturns a builder for creating the root Logger.- Specified by:
newRootLoggerin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
level- The logging Level to be assigned to the root Logger.- Returns:
- A new RootLoggerComponentBuilder.
-
newRootLogger
Description copied from interface:ConfigurationBuilderReturns a builder for creating the root Logger.- Specified by:
newRootLoggerin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
level- The logging Level to be assigned to the root Logger.includeLocation- If true include location information.- Returns:
- A new RootLoggerComponentBuilder.
-
newRootLogger
Description copied from interface:ConfigurationBuilderReturns a builder for creating the root Logger.- Specified by:
newRootLoggerin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
level- The logging Level to be assigned to the root Logger.- Returns:
- A new RootLoggerComponentBuilder.
-
newRootLogger
Description copied from interface:ConfigurationBuilderReturns a builder for creating the root Logger.- Specified by:
newRootLoggerin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
level- The logging Level to be assigned to the root Logger.- Returns:
- A new RootLoggerComponentBuilder.
-
setAdvertiser
Description copied from interface:ConfigurationBuilderSet the Advertiser Plugin name.- Specified by:
setAdvertiserin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
advertiser- The Advertiser Plugin name.- Returns:
- this builder instance.
-
setConfigurationName
Set the name of the configuration.- Specified by:
setConfigurationNamein interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
name- the name of theConfiguration. By default is"Assembled".- Returns:
- this builder instance
-
setConfigurationSource
Set the ConfigurationSource.- Specified by:
setConfigurationSourcein interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
configurationSource- theConfigurationSource- Returns:
- this builder instance
-
setMonitorInterval
Description copied from interface:ConfigurationBuilderSets the interval at which the configuration file should be checked for changes.- Specified by:
setMonitorIntervalin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
intervalSeconds- The number of seconds that should pass between checks of the configuration file.- Returns:
- this builder instance.
-
setPackages
Description copied from interface:ConfigurationBuilderSets the list of packages to search for plugins.- Specified by:
setPackagesin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
packages- The comma separated list of packages.- Returns:
- this builder instance.
-
setShutdownHook
Description copied from interface:ConfigurationBuilderSets whether the shutdown hook should be disabled.- Specified by:
setShutdownHookin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
flag- "disable" will prevent the shutdown hook from being set.- Returns:
- this builder instance.
-
setShutdownTimeout
Description copied from interface:ConfigurationBuilderHow long appenders and background tasks will get to shutdown when the JVM shuts down. Default is zero which mean that each appender uses its default timeout, and don't wait for background tasks. Not all appenders will honor this, it is a hint and not an absolute guarantee that the shutdown procedure will not take longer. Setting this too low increase the risk of losing outstanding log events not yet written to the final destination. (Not used ifConfigurationBuilder.setShutdownHook(String)is set to "disable".)- Specified by:
setShutdownTimeoutin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Returns:
- this builder instance.
- See Also:
-
setStatusLevel
Description copied from interface:ConfigurationBuilderSets the level of the StatusLogger.- Specified by:
setStatusLevelin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
level- The logging level.- Returns:
- this builder instance.
-
setVerbosity
Deprecated.This method is ineffective and only kept for binary backward compatibility.Description copied from interface:ConfigurationBuilderSets whether the logging should include constructing Plugins.- Specified by:
setVerbosityin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
verbosity- "disable" will hide messages from plugin construction.- Returns:
- this builder instance.
-
setDestination
Description copied from interface:ConfigurationBuilderSpecifies the destination for StatusLogger events. This can beout(default) for usingstandard out,errfor usingstandard error, or a file URI to which log events will be written. If the provided URI is invalid, then the default destination of standard out will be used.- Specified by:
setDestinationin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
destination- where status log messages should be output.- Returns:
- this builder instance.
-
setLoggerContext
Description copied from interface:ConfigurationBuilderSets the logger context.- Specified by:
setLoggerContextin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
loggerContext- the logger context.
-
addRootProperty
Description copied from interface:ConfigurationBuilderAdd the properties for the root node.- Specified by:
addRootPropertyin interfaceConfigurationBuilder<T extends BuiltConfiguration>- Parameters:
key- The property key.value- The property value.- Returns:
- this builder instance.
-