Skip to content

[LIVY-1040] Migrate logging framework from Reload4j to Log4j2#525

Merged
gyogal merged 1 commit into
apache:masterfrom
roczei:LIVY-1040
Jun 17, 2026
Merged

[LIVY-1040] Migrate logging framework from Reload4j to Log4j2#525
gyogal merged 1 commit into
apache:masterfrom
roczei:LIVY-1040

Conversation

@roczei

@roczei roczei commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Replaced the reload4j dependency with the Log4j2 library across all modules.

Co-authored by Peter Toth and Gyorgy Gal:

  • Added log4j-api, log4j-core, log4j-slf4j-impl and log4j-1.2-api (backward-compat bridge) to dependencies
  • Removed ch.qos.reload4j:reload4j from all module poms
  • Migrated all log4j.properties test config files to log4j2.properties using the new Log4j2 property-file syntax (rootLogger, appender.* keys)

How was this patch tested?

It has been manually tested with the existing unit tests.

Was this patch authored or co-authored using generative AI tooling?

No

@roczei roczei force-pushed the LIVY-1040 branch 9 times, most recently from b82c5bc to 31b4804 Compare June 2, 2026 21:24
@roczei roczei changed the title LIVY-1040: Migrate logging framework from Reload4j to Log4j2 [LIVY-1040] Migrate logging framework from Reload4j to Log4j2 Jun 2, 2026
@roczei

roczei commented Jun 5, 2026

Copy link
Copy Markdown
Contributor Author

Hi @ArnavBalyan, @peter-toth and @gyogal,

This PR is ready for code review. Could you please take a look at this when you have a moment? Any feedback you provide would be greatly appreciated! Thank you!

@roczei roczei force-pushed the LIVY-1040 branch 4 times, most recently from 17cef03 to 0f69454 Compare June 16, 2026 19:33
Replaced the reload4j dependency with the Log4j2 library across all
modules.

Co-authored by Peter Toth and Gyorgy Gal:

- Added log4j-api, log4j-core, log4j-slf4j-impl and log4j-1.2-api
  (backward-compat bridge) to dependencies
- Removed ch.qos.reload4j:reload4j from all module poms
- Migrated all log4j.properties test config files to log4j2.properties
  using the new Log4j2 property-file syntax (rootLogger, appender.* keys)

Co-authored-by: Peter Toth <[email protected]>
Co-authored-by: Gyorgy Gal <[email protected]>
@gyogal

gyogal commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Thank you for updating the PR @roczei ! I ran some tests with the updated log4j2.properties.template and the logs are looking good now:

26/06/16 17:08:21 INFO BatchSessionManager: Recovered 0 batch sessions. Next session id: 0
26/06/16 17:08:21 INFO InteractiveSessionManager: Recovered 0 interactive sessions. Next session id: 0
26/06/16 17:08:21 INFO InteractiveSessionManager: Heartbeat watchdog thread started.

I also checked with the Maven dependency plugin that reload4j had been completely removed from the dependencies, so the change looks good to me.

@gyogal gyogal merged commit e5accb9 into apache:master Jun 17, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants