Use PluginProcessor instead. To do so,
simply include log4j-core in your dependencies and make sure annotation processing is not
disabled. By default, supported Java compilers will automatically use that plugin processor provided
log4j-core is on the classpath.