Try:
ConsoleAppender.newBuilder<ConsoleAppender.Builder>().withName("ConsoleAppender").build()
Description of newBuilder<B>()
syntax: Reified type parameters
Update:
I read log4j source code and the correct implementation of Builder interface to use is ConsoleAppender.Builder