logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Remko Popma <remko.po...@gmail.com>
Subject Re: logging-log4j2 git commit: Remove internal method that is @deprecated Use {@link #createLogger(boolean, Level, String, String, AppenderRef[], Property[], Configuration, Filter)}
Date Tue, 23 Aug 2016 15:49:39 GMT
Thanks!

On Wed, Aug 24, 2016 at 12:39 AM, Gary Gregory <garydgregory@gmail.com>
wrote:

> Done.
>
> Gary
>
> On Tue, Aug 23, 2016 at 8:17 AM, Gary Gregory <garydgregory@gmail.com>
> wrote:
>
>> Will do...
>>
>> Gary
>>
>> On Tue, Aug 23, 2016 at 2:15 AM, Remko Popma <remko.popma@gmail.com>
>> wrote:
>>
>>> Can we add entries in the change log for deprecated methods or constants
>>> that were removed?
>>>
>>> Otherwise the only way to tell for users is when they get a compilation
>>> error...
>>>
>>> Sent from my iPhone
>>>
>>> > On 2016/08/23, at 14:54, ggregory@apache.org wrote:
>>> >
>>> > Repository: logging-log4j2
>>> > Updated Branches:
>>> >  refs/heads/master 99c96e705 -> facb281ba
>>> >
>>> >
>>> > Remove internal method that is @deprecated Use {@link
>>> > #createLogger(boolean, Level, String, String, AppenderRef[],
>>> Property[],
>>> > Configuration, Filter)}
>>> >
>>> > Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
>>> > Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit
>>> /facb281b
>>> > Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/f
>>> acb281b
>>> > Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/f
>>> acb281b
>>> >
>>> > Branch: refs/heads/master
>>> > Commit: facb281ba2f5f83903a7aedf385f83d7f9520561
>>> > Parents: 99c96e7
>>> > Author: Gary Gregory <ggregory@apache.org>
>>> > Authored: Mon Aug 22 22:54:57 2016 -0700
>>> > Committer: Gary Gregory <ggregory@apache.org>
>>> > Committed: Mon Aug 22 22:54:57 2016 -0700
>>> >
>>> > ----------------------------------------------------------------------
>>> > .../logging/log4j/core/config/LoggerConfig.java | 34
>>> --------------------
>>> > 1 file changed, 34 deletions(-)
>>> > ----------------------------------------------------------------------
>>> >
>>> >
>>> > http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/f
>>> acb281b/log4j-core/src/main/java/org/apache/logging/log4j/co
>>> re/config/LoggerConfig.java
>>> > ----------------------------------------------------------------------
>>> > diff --git a/log4j-core/src/main/java/org
>>> /apache/logging/log4j/core/config/LoggerConfig.java
>>> b/log4j-core/src/main/java/org/apache/logging/log4j/core/con
>>> fig/LoggerConfig.java
>>> > index 02fe245..d5a03bc 100644
>>> > --- a/log4j-core/src/main/java/org/apache/logging/log4j/core/con
>>> fig/LoggerConfig.java
>>> > +++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/con
>>> fig/LoggerConfig.java
>>> > @@ -399,40 +399,6 @@ public class LoggerConfig extends
>>> AbstractFilterable {
>>> >     /**
>>> >      * Factory method to create a LoggerConfig.
>>> >      *
>>> > -     * @param additivity True if additive, false otherwise.
>>> > -     * @param level The Level to be associated with the Logger.
>>> > -     * @param loggerName The name of the Logger.
>>> > -     * @param includeLocation whether location should be passed
>>> downstream
>>> > -     * @param refs An array of Appender names.
>>> > -     * @param properties Properties to pass to the Logger.
>>> > -     * @param config The Configuration.
>>> > -     * @param filter A Filter.
>>> > -     * @return A new LoggerConfig.
>>> > -     * @deprecated Use {@link #createLogger(boolean, Level, String,
>>> String, AppenderRef[], Property[], Configuration, Filter)}
>>> > -     */
>>> > -    @Deprecated
>>> > -    public static LoggerConfig createLogger(final String additivity,
>>> > -            final Level level, @PluginAttribute("name") final String
>>> loggerName,
>>> > -            final String includeLocation,
>>> > -            final AppenderRef[] refs,
>>> > -            final Property[] properties, @PluginConfiguration final
>>> Configuration config,
>>> > -            final Filter filter) {
>>> > -        if (loggerName == null) {
>>> > -            LOGGER.error("Loggers cannot be configured without a
>>> name");
>>> > -            return null;
>>> > -        }
>>> > -
>>> > -        final List<AppenderRef> appenderRefs = Arrays.asList(refs);
>>> > -        final String name = loggerName.equals(ROOT) ? Strings.EMPTY :
>>> loggerName;
>>> > -        final boolean additive = Booleans.parseBoolean(additivity,
>>> true);
>>> > -
>>> > -        return new LoggerConfig(name, appenderRefs, filter, level,
>>> additive, properties, config,
>>> > -                includeLocation(includeLocation));
>>> > -    }
>>> > -
>>> > -    /**
>>> > -     * Factory method to create a LoggerConfig.
>>> > -     *
>>> >      * @param additivity true if additive, false otherwise.
>>> >      * @param level The Level to be associated with the Logger.
>>> >      * @param loggerName The name of the Logger.
>>> >
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
>>> For additional commands, e-mail: log4j-dev-help@logging.apache.org
>>>
>>>
>>
>>
>> --
>> E-Mail: garydgregory@gmail.com | ggregory@apache.org
>> Java Persistence with Hibernate, Second Edition
>> <http://www.manning.com/bauer3/>
>> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
>> Spring Batch in Action <http://www.manning.com/templier/>
>> Blog: http://garygregory.wordpress.com
>> Home: http://garygregory.com/
>> Tweet! http://twitter.com/GaryGregory
>>
>
>
>
> --
> E-Mail: garydgregory@gmail.com | ggregory@apache.org
> Java Persistence with Hibernate, Second Edition
> <http://www.manning.com/bauer3/>
> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> Spring Batch in Action <http://www.manning.com/templier/>
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory
>

Mime
View raw message