Log4J2 mock adapter for using with Elasticsearch 5.x
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Log42j mock for Elasticsearch 5.x Travis Maven Central

This is a mock implementation of org.apache.logging.log4j:log4j-core, just enough to satisfy Elasticsearch 5.x to work with other logging frameworks such as SLF4J.

Elasticsearch 5.x has a hard dependency on log4j 2, but not only on the API, also on the internal classes. This means that if you want to use the embedded node, you are forced to use log4j 2 as well, which may not always be possible.

This implementation provides enough of log4j 2 to trick Elasticsearch into working and not tinkering around with log4j internals. All logging which is original going over log4j2, still can be redirected to SLF4J and will work. What will not work is the re-configuration of the logging configuration which Elasticsearch enforces, this is simply ignored.

Maven coordinates

    <version><!-- version --></version>