In general, you should be using the current version 2.10.0. Any reason you
are digging deep into old versions?

Also, I've not been very strict about using @since in log4j-core. In
log4j-api, we are very careful to do it all "right.""

Gary

On Tue, Jan 16, 2018 at 12:41 PM, Mike Wertheim <mike.werth...@gmail.com>
wrote:

> https://logging.apache.org/log4j/2.x/log4j-core/apidocs/
> org/apache/logging/log4j/core/appender/RollingFileAppender.html
> describes a method called "newBuilder". This method doesn't have a "since"
> version, so I would assume that it's supported in all log4j2 versions.
>
> However, the expression RollingFileAppender.newBuilder() compiles fine
> with
> version 2.7, but I get "error: cannot find symbol" when I try to compile it
> with version 2.6.
>
> Similarly.... According to
> https://logging.apache.org/log4j/2.x/log4j-core/apidocs/
> org/apache/logging/log4j/core/appender/RollingFileAppender.Builder.html,
> it seems that the 'setConfiguration' method should be available in all 2.x
> versions of log4j2.
>
> However, the expression
> RollingFileAppender.newBuilder().setConfiguration(config).build() compiles
> fine with version 2.10.0, but I get "error: cannot find symbol" when I try
> to compile it with version 2.7.
>
> In both cases, it seems like the javadoc says that a method exists in all
> 2.x log4j2 versions, but that doesn't seem to be the case. Are these
> methods only available in a subset of log4j2 versions? Is the javadoc
> missing the "since version" information for these methods?
>

Reply via email to