Sort members. Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/6f75a924 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/6f75a924 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/6f75a924
Branch: refs/heads/master Commit: 6f75a924a84be10b7e8555758e73bbc907b7b389 Parents: 21f2c1f Author: ggregory <[email protected]> Authored: Mon Aug 31 22:05:48 2015 -0700 Committer: ggregory <[email protected]> Committed: Mon Aug 31 22:05:48 2015 -0700 ---------------------------------------------------------------------- .../builder/api/ConfigurationBuilder.java | 164 +++++++++---------- 1 file changed, 82 insertions(+), 82 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/6f75a924/log4j-core/src/main/java/org/apache/logging/log4j/core/config/builder/api/ConfigurationBuilder.java ---------------------------------------------------------------------- diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/config/builder/api/ConfigurationBuilder.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/config/builder/api/ConfigurationBuilder.java index 48db86a..c3921a3 100644 --- a/log4j-core/src/main/java/org/apache/logging/log4j/core/config/builder/api/ConfigurationBuilder.java +++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/config/builder/api/ConfigurationBuilder.java @@ -28,55 +28,6 @@ import org.apache.logging.log4j.core.util.Builder; public interface ConfigurationBuilder<T extends Configuration> extends Builder<T> { /** - * Sets the name of the configuration. - * @param name the name of the {@link Configuration}. By default is {@code "Constructed"}. - * @return this builder instance. - */ - ConfigurationBuilder<T> setConfigurationName(String name); - - /** - * Sets the configuration source, if one exists. - * @param configurationSource the ConfigurationSource. - * @return this builder instance. - */ - ConfigurationBuilder<T> setConfigurationSource(ConfigurationSource configurationSource); - - /** - * Sets the level of the StatusLogger. - * @param level The logging level. - * @return this builder instance. - */ - ConfigurationBuilder<T> setStatusLevel(Level level); - - /** - * Sets whether the logging should include constructing Plugins. - * @param verbosity "disable" will hide messages from plugin construction. - * @return this builder instance. - */ - ConfigurationBuilder<T> setVerbosity(String verbosity); - - /** - * Sets the list of packages to search for plugins. - * @param packages The comma separated list of packages. - * @return this builder instance. - */ - ConfigurationBuilder<T> setPackages(String packages); - - /** - * Sets whether the shutdown hook should be disabled. - * @param flag "disable" will prevent the shutdown hook from being set. - * @return this builder instance. - */ - ConfigurationBuilder<T> setShutdownHook(String flag); - - /** - * Sets the interval at which the configuration file should be checked for changes. - * @param intervalSeconds The number of seconds that should pass between checks of the configuration file. - * @return this builder instance. - */ - ConfigurationBuilder<T> setMonitorInterval(String intervalSeconds); - - /** * Adds an AppenderComponent. * @param builder The AppenderComponentBuilder with all of its attributes and sub components set. * @return this builder instance. @@ -91,6 +42,13 @@ public interface ConfigurationBuilder<T extends Configuration> extends Builder<T ConfigurationBuilder<T> add(CustomLevelComponentBuilder builder); /** + * Adds a Filter component. + * @param builder the FilterComponentBuilder with all of its attributes and sub components set. + * @return this builder instance. + */ + ConfigurationBuilder<T> add(FilterComponentBuilder builder); + + /** * Adds a Logger component. * @param builder The LoggerComponentBuilder with all of its attributes and sub components set. * @return this builder instance. @@ -105,13 +63,6 @@ public interface ConfigurationBuilder<T extends Configuration> extends Builder<T ConfigurationBuilder<T> add(RootLoggerComponentBuilder builder); /** - * Adds a Filter component. - * @param builder the FilterComponentBuilder with all of its attributes and sub components set. - * @return this builder instance. - */ - ConfigurationBuilder<T> add(FilterComponentBuilder builder); - - /** * Adds a Property key and value. * @param key The property key. * @param value The property value. @@ -127,7 +78,6 @@ public interface ConfigurationBuilder<T extends Configuration> extends Builder<T */ AppenderComponentBuilder newAppender(String name, String pluginName); - /** * Returns a builder for creating AppenderRefs. * @param ref The name of the Appender being referenced. @@ -136,6 +86,36 @@ public interface ConfigurationBuilder<T extends Configuration> extends Builder<T AppenderRefComponentBuilder newAppenderRef(String ref); /** + * Returns a builder for creating Async Loggers. + * @param name The name of the Logger. + * @param level The logging Level to be assigned to the Logger. + * @return The LoggerComponentBuilder. + */ + LoggerComponentBuilder newAsyncLogger(String name, Level level); + + /** + * Returns a builder for creating Async Loggers. + * @param name The name of the Logger. + * @param level The logging Level to be assigned to the Logger. + * @return The LoggerComponentBuilder. + */ + LoggerComponentBuilder newAsyncLogger(String name, String level); + + /** + * Returns a builder for creating the async root Logger. + * @param level The logging Level to be assigned to the root Logger. + * @return The RootLoggerComponentBuilder. + */ + RootLoggerComponentBuilder newAsyncRootLogger(Level level); + + /** + * Returns a builder for creating the async root Logger. + * @param level The logging Level to be assigned to the root Logger. + * @return The RootLoggerComponentBuilder. + */ + RootLoggerComponentBuilder newAsyncRootLogger(String level); + + /** * Returns a builder for creating generic components. * @param name The name of the component (may be null). * @param pluginName The Plugin type of the component. @@ -152,6 +132,7 @@ public interface ConfigurationBuilder<T extends Configuration> extends Builder<T */ ComponentBuilder<?> newComponent(String name, String pluginName, String value); + /** * Returns a builder for creating CustomLevels * @param name The name of the custom level. @@ -193,7 +174,6 @@ public interface ConfigurationBuilder<T extends Configuration> extends Builder<T */ LoggerComponentBuilder newLogger(String name, Level level); - /** * Returns a builder for creating Loggers. * @param name The name of the Logger. @@ -203,22 +183,6 @@ public interface ConfigurationBuilder<T extends Configuration> extends Builder<T LoggerComponentBuilder newLogger(String name, String level); /** - * Returns a builder for creating Async Loggers. - * @param name The name of the Logger. - * @param level The logging Level to be assigned to the Logger. - * @return The LoggerComponentBuilder. - */ - LoggerComponentBuilder newAsyncLogger(String name, Level level); - - /** - * Returns a builder for creating Async Loggers. - * @param name The name of the Logger. - * @param level The logging Level to be assigned to the Logger. - * @return The LoggerComponentBuilder. - */ - LoggerComponentBuilder newAsyncLogger(String name, String level); - - /** * Returns a builder for creating the root Logger. * @param level The logging Level to be assigned to the root Logger. * @return The RootLoggerComponentBuilder. @@ -234,17 +198,53 @@ public interface ConfigurationBuilder<T extends Configuration> extends Builder<T /** - * Returns a builder for creating the async root Logger. - * @param level The logging Level to be assigned to the root Logger. - * @return The RootLoggerComponentBuilder. + * Sets the name of the configuration. + * @param name the name of the {@link Configuration}. By default is {@code "Constructed"}. + * @return this builder instance. */ - RootLoggerComponentBuilder newAsyncRootLogger(Level level); + ConfigurationBuilder<T> setConfigurationName(String name); + + /** + * Sets the configuration source, if one exists. + * @param configurationSource the ConfigurationSource. + * @return this builder instance. + */ + ConfigurationBuilder<T> setConfigurationSource(ConfigurationSource configurationSource); + /** + * Sets the interval at which the configuration file should be checked for changes. + * @param intervalSeconds The number of seconds that should pass between checks of the configuration file. + * @return this builder instance. + */ + ConfigurationBuilder<T> setMonitorInterval(String intervalSeconds); /** - * Returns a builder for creating the async root Logger. - * @param level The logging Level to be assigned to the root Logger. - * @return The RootLoggerComponentBuilder. + * Sets the list of packages to search for plugins. + * @param packages The comma separated list of packages. + * @return this builder instance. */ - RootLoggerComponentBuilder newAsyncRootLogger(String level); + ConfigurationBuilder<T> setPackages(String packages); + + /** + * Sets whether the shutdown hook should be disabled. + * @param flag "disable" will prevent the shutdown hook from being set. + * @return this builder instance. + */ + ConfigurationBuilder<T> setShutdownHook(String flag); + + + /** + * Sets the level of the StatusLogger. + * @param level The logging level. + * @return this builder instance. + */ + ConfigurationBuilder<T> setStatusLevel(Level level); + + + /** + * Sets whether the logging should include constructing Plugins. + * @param verbosity "disable" will hide messages from plugin construction. + * @return this builder instance. + */ + ConfigurationBuilder<T> setVerbosity(String verbosity); }
