Log4j Runtime DependenciesSome Log4J features depend on external libraries. This page lists the required and optional dependencies. As of version 2.4, Log4J requires Java 7. Log4j version 2.3 and older require Java 6. log4j-coreThe Log4J Implementation has several optional dependencies. See the Dependency Tree for the exact list of JAR files needed for these features.
log4j-jclThe Commons Logging Bridge requires Commons Logging. See the Dependency Tree for the exact list of JAR files needed. log4j-1.2-apiThe Log4j 1.2 Bridge has no external dependencies. This only requires the Log4j API and Log4j Core. log4j-slf4j-implThe Log4j 2 SLF4J Binding depends on the SLF4J API. See the Dependency Tree for the exact list of JAR files needed. Do not use this with the log4j-to-slf4j module. log4j-julThe Log4j 2 Java Util Logging Adapter has no external dependencies. It optionally depends on the Log4j Core library. The only required module is the Log4j API. log4j-to-slf4jThe Log4j 2 to SLF4J Adapter requires the SLF4J API and an SLF4J implementation. See the Dependency Tree for the exact list of JAR files needed. Do not use this with the log4j-slf4j-impl module. log4j-flume-ngThe Flume Appender requires Apache Flume and Apache Avro. The persistent agent uses Berkeley DB. See the Dependency Tree for the exact list of JAR files needed. log4j-taglibThe Log4j Log Tag Library requires the Jakarta Commons Log Taglib and the Servlet API. See the Dependency Tree for the exact list of JAR files needed. log4j-jmx-guiThe Log4j JMX GUI requires the JConsole jar when run as a JConsole plugin. Otherwise it has no external dependencies. See the Dependency Tree for the exact list of JAR files needed. log4j-webThe Log4j Web module requires the Servlet API. See the Dependency Tree for the exact list of JAR files needed. Note that this works with the Servlet 2.5 API as well as the Servlet 3.x API. log4j-nosqlThe Log4J NoSQL Appenders module has several optional dependencies. See the Dependency Tree for the exact list of JAR files needed for these features.
log4j-iostreamsThe Log4j IO Streams module has no external dependencies. This only requires the Log4j API. log4j-api-scalaThe Log4j Scala API requires Scala runtime library and reflection in addition to the Log4j API. |