← Back to Pull requests

Move the remaining log4j 1.x API uses to log4j2 #539

Open
unknown opened this pull request with 205 lines diff across 2 files
View on GitHub
unknown unknown commented on Oct 30, 2026 10:43 UTC
Author

What

Moves the last uses of the log4j 1.x API to log4j2 and drops the log4j 1.2 bridge:

  • DefaultDebugUsageController now uses LogManager/Logger like the other controllers.

  • ExtensionStatuses and ExtensionStatusProvider look up org.apache.logging.log4j.LogManager reflectively instead of org.apache.log4j.Logger.

  • The transformer script resets its logger through the log4j2 LogManager.

  • log4j-1.2-api is removed from the distribution, and slf4j-log4j12 (which needs the bridge's log4j 1.x classes) is replaced by log4j-slf4j-impl.

  • MyBatis uses its log4j2 adapter (LogFactory.useLog4J2Logging()) instead of the log4j 1.x one.

  • The vendored not-going-to-be-commons-ssl jar, which called log4j 1.x directly and was only kept for SoapUI, is removed with its regression test and the leftover SoapUI log4j config.
  • User-facing fix

    This also fixes the CLI's exportmessages, which is broken in 4.7.0: cli-lib ships slf4j-log4j12 without the bridge, so Velocity's SLF4J init fails with NoClassDefFoundError: org/apache/log4j/Level, nothing is written, and the CLI still exits 0. Thanks to @pacmano1 for confirming this against a build of this branch.

    Reviewer notes

  • The extprops classes are packed into the launcher jar, which has no log4j on its classpath, so they keep the reflective lookup through the context classloader, the same lookup MirthLauncher already does.

  • User scripts that reference Packages.org.apache.log4j.* directly will no longer find those classes; the logger variable they get is a log4j2 Logger.
  • 🤖 Generated with Claude Code

    Diff: 205 lines (+153 / -52) across 2 files Reviewer: tonygermano Review duration: 44964m
    All Vouch review confidence checks passed
    Residual risk 0.24 = Change Risk (0.43) × (1 − Review Confidence (0.45)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.43 · 205 lines diff across 2 files
    0.43
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    44%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.319
    Real PR Conversation Timeline
    1 comments
    "Review active on #539"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 44.7% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 43.3% (MEDIUM) · Higher = larger blast radius
    43.3%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 44.7% · Lower = rushed or shallow review
    44.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 24.0% · Safe to merge
    24.0%