Key facts
| Gen 1 | |
|---|---|
| Gen 2 | |
| Kind of tool | Backend frameworks and APIs |
| Status of Gen 1 | Abandoned The Apache Logging Services Project Management Committee announced on August 5, 2015 that Log4j 1.x had reached end of life. |
| End of support | Apache Log4j 1 ended Oct 15, 2015 From endoflife.date, read Nov 30, 2026. |
| Effort to move | Mechanical: same ideas, different calls |
| Automate part of it | OpenRewrite Log4j1ToLog4j2 org.openrewrite.java.logging.log4j.Log4j1ToLog4j2 A recipe that migrates Log4j 1.x code and dependencies to Log4j 2.x. |
| What breaks | The Log4j 2 configuration format is incompatible with the Log4j 1 format, and calls outside the logging API, such as Logger.setLevel(), have to be replaced. |
| Should you move? | Move now Apache's Log4j 1 page lists six vulnerabilities, one of them critical, and says none of them will be fixed because Log4j 1 is no longer maintained. This is gen2.dev's view, not the maintainers'. |
| Sources checked | 2026-11-28, 4 sources |
Gen 1 and Gen 2 side by side
| GitHub | ||
|---|---|---|
| Repository | apache/logging-log4j1 | apache/logging-log4j2 |
| Latest version | v1_2_17 (newest tag) | rel/2.26.1 |
| Latest release | May 26, 2012 | Jul 2, 2026 |
| Repository created | May 21, 2009 | Jun 12, 2013 |
| License | Apache-2.0 | Apache-2.0 |
| GitHub stars | 868 | 3,644 |
| Last code push | Jan 3, 2023 | Nov 26, 2026 |
| Archived | Yes, read-only | No |
Read from GitHub on November 29, 2026. Stars measure attention, not use. A dash means the figure does not apply to that kind of listing.
What Gen 1 was
Log4j 1 was the logging library for a generation of Java. Apache's announcement says, "Log4j saw its first release in 1999 and quickly became the most used logging framework ever." Its last release, 1.2.17, came in 2012.
On August 5, 2015 the Apache Logging Services Project Management Committee announced that the Log4j 1.x framework "has reached its end of life (EOL) and is no longer officially supported."
What replaced it
Apache Log4j 2. It is not an upgrade in place. The migration guide says Log4j 2 was rewritten from scratch and "introduces many breaking changes to its predecessor." The classes moved from the org.apache.log4j package to org.apache.logging.log4j, though most class and method names carried over.
What moving involves
There are two parts, and they can be done separately.
The code. The quick route is the log4j-1.2-api bridge, which forwards Log4j 1 API calls to Log4j 2. Add it and remove the old log4j:log4j artifact, along with reload4j and log4j-over-slf4j if present, because the bridge is incompatible with them. The guide recommends migrating the code directly in the end, and names an OpenRewrite recipe that automates it.
The configuration. The Log4j 2 format "is incompatible with the format used by Log4j 1." A converter turns a log4j.properties file into log4j2.xml.
The bridge is a small case of running two systems at once. The guide is direct about it: the bridge "is not conceived as a long term solution." Give it an end date.
What breaks
- Calls outside the API. Methods such as
Logger.setLevel()have to be replaced with a call specific to the logging backend. - Rolling files. Log4j 2 uses a different strategy to number archived log files. Getting the old behavior requires
fileIndex="min". - Layouts.
XMLLayouthas no exact equivalent in Log4j 2 Core, and the Syslog appender does not support custom layouts. - Patterns.
%p,%xand%Xformat differently, which matters to anything that parses the logs. - Lookups.
${foo}in a configuration file becomes${sys:foo}. - Custom components. Native Log4j 1 components are supported only since 2.17.2, and only through Log4j 1 configuration files. The guide warns that mixing components from both versions "will most certainly reduce the performance of the logging system."
Should you move?
Yes, now. Apache's page for Log4j 1 lists six vulnerabilities, from CVE-2019-17571 to CVE-2022-23307, five rated high or critical. It then says, "Since Log4j 1 is no longer maintained none of the issues listed will be fixed."
There is no comfortable exception. An application that cannot change its code can still swap the old artifact for the bridge. Check your dependencies as well as your own code, because a library can bring Log4j 1 in without your build file naming it.
Common questions
Is Log4j 1 dead?
It is abandoned. The Apache Logging Services Project Management Committee announced on August 5, 2015 that Log4j 1.x had reached end of life.
What replaced Log4j 1?
Apache Log4j 2. Effort to move: Mechanical: same ideas, different calls
Should I move off Log4j 1?
gen2.dev's view: Move now. Apache's Log4j 1 page lists six vulnerabilities, one of them critical, and says none of them will be fixed because Log4j 1 is no longer maintained.
Sources
- Apache Log4j 1.2 - logging.apache.org - The end of life statement, the list of six security vulnerabilities, and the statement that none of them will be fixed.
- Apache Logging Services Project Announces Log4j 1 End-Of-Life; Recommends Upgrade to Log4j 2 - Apache Software Foundation (August 6, 2015) - The announcement itself: Log4j 1.x is no longer officially supported, the first release was in 1999 and the last in 2012.
- Migrate from Log4j 1 - Apache Log4j 2 documentation - The migration guide: the log4j-1.2-api bridge and its limits, the package change, the configuration converter and the differences in behavior.
- Apache Log4j - logging.apache.org - Describes Apache Log4j as a Java logging framework composed of an API, its implementation and components.
- Apache Log4j 1 - endoflife.date - the end-of-support date, read on Nov 30, 2026
- apache/logging-log4j1 - GitHub - latest release, license, stars, last push and archive status, read on November 29, 2026
- apache/logging-log4j2 - GitHub - latest release, license, stars, last push and archive status, read on November 29, 2026
Sources checked on 2026-11-28. Tools change status quickly; if this date is old, read the sources before acting on it.

