logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <garydgreg...@gmail.com>
Subject Re: what version are RollingFileAppender.newBuilder() and RollingFileAppender.Builder.setConfiguration supported in?
Date Tue, 16 Jan 2018 20:16:31 GMT
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.""


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

> 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?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message