Log4j 2 to SLF4J Adapter
The Log4j 2 to SLF4J Adapter allows applications coded to the Log4j 2 API to be routed to SLF4J.
Use of this adapter may cause some loss of performance as the Log4j 2 Messages must be formatted
before they can be passed to SLF4J. With Log4j 2 as the implementation these would normally be
formatted only when they are accessed by a Filter or Appender.
Requirements
The Log4j 2 to SLF4J adapter requires at least Java 5. Use of this adapter together with the
SLF4J bridge should never be attempted as it will cause a events to endlessly be routed between
SLF4J and Log4j 2.
Usage
Include this jar, the SLF4J jar(s) and an SLF4J logging implementation jar together. Configure
the logging implementation as required.
|