Log4j-to-JUL bridge
The Log4j-to-JUL bridge provides components that allow application and library that use the Log4j API
to log to
java.util.logging.Logger
(JUL) instead.
| This chapter covers the implementation details of the Log4j-to-JUL bridge. For the installation procedure and basic usage see Installing JUL section of our Installation guide. |
Level conversion
The current Log4j-to-JUL implementation does not use custom JUL levels and converts Log4j levels to JUL according to the following table:
Table 1. Log4j to Java level conversion
| Log4j level priority | Log4j standard levels | Java Level |
|---|---|---|
0 ≤ priority < 300 |
FATAL, ERROR |
SEVERE |
300 ≤ priority < 400 |
WARN |
WARNING |
400 ≤ priority < 500 |
INFO |
INFO |
500 ≤ priority < 600 |
DEBUG |
FINE |
600 ≤ priority |
TRACE |
FINER |
