# Log4j 1 to Log4j 2: End of Life and Migration | gen2.dev

> Apache declared Log4j 1 end of life on August 5, 2015 and its known vulnerabilities will not be fixed. How the move to Log4j 2 works and what breaks.

Source: https://gen2.dev/successors/log4j-1/

---

Successor Map · Backend frameworks and APIs

# Log4j 1 to Log4j 2: end of life since 2015

Apache announced the end of life of Log4j 1 on August 5, 2015. Its own page now lists six security vulnerabilities that will not be fixed, and the supported path is Log4j 2, which has a bridge for code that still calls the old API.

![Slide: Log4j 1 on the left, an arrow, and Log4j 2 on the right.](https://gen2.dev/img/successor-log4j-1.png)

Status of the old tool

Abandoned

Effort to move

Mechanical

gen2.dev's view

Move now

Sources checked

2026-11-28

## Key facts

Gen 1

![Log4j 1 logo](https://gen2.dev/icons/tech/log4j-1.png)Apache Log4j 1, first released in 1999

Gen 2

![Log4j 2 logo](https://gen2.dev/icons/tech/log4j2.png)Apache Log4j 2

Kind of tool

[Backend frameworks and APIs](https://gen2.dev/successors/backend/)

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](https://endoflife.date/log4j), read Nov 30, 2026.

Effort to move

Mechanical: same ideas, different calls

Automate part of it

[OpenRewrite Log4j1ToLog4j2](https://github.com/openrewrite/rewrite-logging-frameworks) `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](#sources)

## Gen 1 and Gen 2 side by side

GitHub

![Log4j 1 logo](https://gen2.dev/icons/tech/log4j-1.png)Gen 1

![Log4j 2 logo](https://gen2.dev/icons/tech/log4j2.png)Gen 2

Repository

[apache/logging-log4j1](https://github.com/apache/logging-log4j1)

[apache/logging-log4j2](https://github.com/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](https://gen2.dev/guide/running-two-systems/). 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.** `XMLLayout` has no exact equivalent in Log4j 2 Core, and the Syslog appender does not support custom layouts.
-   **Patterns.** `%p`, `%x` and `%X` format 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

1.  [Apache Log4j 1.2 - logging.apache.org](https://logging.apache.org/log4j/1.x/) - The end of life statement, the list of six security vulnerabilities, and the statement that none of them will be fixed.
2.  [Apache Logging Services Project Announces Log4j 1 End-Of-Life; Recommends Upgrade to Log4j 2 - Apache Software Foundation (August 6, 2015)](https://news.apache.org/foundation/entry/apache_logging_services_project_announces) - The announcement itself: Log4j 1.x is no longer officially supported, the first release was in 1999 and the last in 2012.
3.  [Migrate from Log4j 1 - Apache Log4j 2 documentation](https://logging.apache.org/log4j/2.x/migrate-from-log4j1.html) - The migration guide: the log4j-1.2-api bridge and its limits, the package change, the configuration converter and the differences in behavior.
4.  [Apache Log4j - logging.apache.org](https://logging.apache.org/log4j/2.x/) - Describes Apache Log4j as a Java logging framework composed of an API, its implementation and components.
5.  [Apache Log4j 1 - endoflife.date](https://endoflife.date/log4j) - the end-of-support date, read on Nov 30, 2026
6.  [apache/logging-log4j1 - GitHub](https://github.com/apache/logging-log4j1) - latest release, license, stars, last push and archive status, read on November 29, 2026
7.  [apache/logging-log4j2 - GitHub](https://github.com/apache/logging-log4j2) - 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.

## How to do the move

The pattern that fits this kind of replacement:

[Running two systems](https://gen2.dev/guide/running-two-systems/)

[All successor entries](https://gen2.dev/successors/)

## More in Backend frameworks and APIs

-    [![Adobe ColdFusion logo](https://gen2.dev/icons/tech/coldfusion.png) Adobe ColdFusion to serverless functions Still active A real project Move when convenient](https://gen2.dev/successors/coldfusion/)
-    [![Apache Struts 1 logo](https://gen2.dev/icons/tech/struts-1.png) Apache Struts 1 to Spring Boot Abandoned A real project Move now](https://gen2.dev/successors/struts-1/)
-    [![ASP.NET Web Forms logo](https://gen2.dev/icons/tech/aspnet-web-forms.png) ASP.NET Web Forms to Blazor Maintenance only A real project Leave it](https://gen2.dev/successors/aspnet-web-forms/)
-    [![Classic ASP logo](https://gen2.dev/icons/tech/classic-asp.png) Classic ASP to ASP.NET Core Still active A real project Move when convenient](https://gen2.dev/successors/classic-asp/)
-    [![request logo](https://gen2.dev/icons/tech/request.png) request to fetch, undici or got Deprecated Mechanical Move now](https://gen2.dev/successors/request/)
-    [![REST logo](https://gen2.dev/icons/tech/rest.png) REST to GraphQL or gRPC Still active A real project Leave it](https://gen2.dev/successors/rest/)
-    [![WCF logo](https://gen2.dev/icons/tech/wcf.png) WCF to ASP.NET Core Maintenance only A real project Leave it](https://gen2.dev/successors/wcf/)
-    [![Zend Framework logo](https://gen2.dev/icons/tech/zend-framework.png) Zend Framework to Laminas, Laravel or Symfony Abandoned A real project Move now](https://gen2.dev/successors/zend-framework/)

[All backend frameworks and apis](https://gen2.dev/successors/backend/)
