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?