Module Directive | Notes |
---|---|
|
|
|
|
|
|
|
|
|
|
|
Some classes in this package are used by the logging implementation and should be considered private. The module info definition may be modified in the future to export these only to the logging implementation. |
|
|
|
|
|
Service that must be provided by the logging implementation. |
|
Service that must be provided by the logging implementation. |
|
Service that must be provided by the logging implementation. |
|
Runtime Dependencies
Some Log4j features depend on external libraries. This page lists the required and optional dependencies.
The Log4j API is a Java module (with a module-info.java). Many of the other jars are also JPMS modules. The characteristics of the modules are:
Artifact Name | Module Name | Module Characteristics | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
log4j-api |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
log4j-core |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
log4j-1.2-api |
|
Automatic Module - It is unlikely any application using JPMS would use Log4j 1.x. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
log4j-docker |
|
Automatic Module |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
log4j-flume-ng |
|
Automatic Module |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
log4j-iostreams |
|
Automatic Module |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
log4j-jpl |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
log4j-jul |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
log4j-layout-template-json |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
log4j-plugin-processor |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
log4j-plugins |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
log4j-script |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
log4j-slf4j-impl |
|
Automatic Module. May require renaming should SLF4J ever require all implementations to have the same module name. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
log4j-to-jul |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
log4j-to-slf4j |
|
Automatic Module |
- log4j-api
-
The Log4j API module has no required external dependencies.
- log4j-core
-
The Log4j Implementation has no required exterbak dependencies but has several optional dependencies. See the Dependency Tree for the exact list of JAR files needed for these features.
Feature | Requirements |
---|---|
XML configuration |
- |
Properties configuration |
- |
JSON configuration |
|
YAML configuration |
|
CSV Layout |
|
Async Loggers |
|
Windows console color support |
|
JDBC Appender |
a JDBC driver for the database you choose to write events to |
NoSQL Appender with MongoDB provider |
MongoDB Java Client driver and Log4j MongoDB library |
Bzip2, Deflate, Pack200, and XZ compression on rollover |
Apache Commons Compress. In addition, XZ requires XZ for Java. |
The Log4j 1.2 Bridge has no external dependencies. This only requires the Log4j API. Including Log4j Core provides optional, extra functionality. |
|
The Log4j Scala API requires Scala runtime library and reflection in addition to the Log4j API. |
|
log4j-docker |
Log4j Docker Support requires Jackson annotations, core, and databind. See the Dependency Tree for the exact list of JAR files needed. |
The 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. |
|
The Log4j IO Streams module has no external dependencies. This only requires the Log4j API. |
|
The 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. |
|
The 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. |
|
The Log4j MongoDB module depends on the MongoDB Java Client driver. |
|
The Log4j 2 SLF4J Binding depends on the SLF4J API. See the Dependency Tree for the exact list of JAR files needed. WARNING: Do not use this with the log4j-to-slf4j module. |
|
Log4j Spring Cloud Config Client requires Spring Cloud Config. Spring Cloud Bus is required if notification of logging configuration changes is desired. Spring Boot is required but applications do not have to be packaged as a Spring Boot application. |
|
The 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. WARNING: Do not use this with the log4j-slf4j-impl module. |