Title: Revisit log4j2 Message.getFormat() deprecation for v9 · Issue #6377 · getsentry/sentry-java · GitHub
Open Graph Title: Revisit log4j2 Message.getFormat() deprecation for v9 · Issue #6377 · getsentry/sentry-java
X Title: Revisit log4j2 Message.getFormat() deprecation for v9 · Issue #6377 · getsentry/sentry-java
Description: Log4j 2.24.0 deprecated org.apache.logging.log4j.message.Message.getFormat(), and sentry-log4j2 still calls it to get the unformatted message template. The deprecation warning is suppressed in #5435 (log4j2 2.20.0 → 2.26.1) to keep the b...
Open Graph Description: Log4j 2.24.0 deprecated org.apache.logging.log4j.message.Message.getFormat(), and sentry-log4j2 still calls it to get the unformatted message template. The deprecation warning is suppressed in #543...
X Description: Log4j 2.24.0 deprecated org.apache.logging.log4j.message.Message.getFormat(), and sentry-log4j2 still calls it to get the unformatted message template. The deprecation warning is suppressed in #543...
Opengraph URL: https://github.com/getsentry/sentry-java/issues/6377
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Revisit log4j2 Message.getFormat() deprecation for v9","articleBody":"Log4j 2.24.0 deprecated `org.apache.logging.log4j.message.Message.getFormat()`, and `sentry-log4j2` still calls it to get the unformatted message template. The deprecation warning is suppressed in getsentry/sentry-java#5435 (log4j2 2.20.0 → 2.26.1) to keep the build passing under `-Xlint:all -Werror`.\n\n* Call sites: `SentryAppender.captureLog` (populates the `sentry.message.template` log attribute) and `SentryAppender.createEvent` (sets `Message.message` on events) in `sentry-log4j2/src/main/java/io/sentry/log4j2/SentryAppender.java`.\n* The deprecation note points to `MultiformatMessage` for implementing messages. It does not offer a replacement for reading a message's template, and `getFormattedMessage()` drops the template.\n* In 2.26.1 the interface method is a default that returns `null`. Concrete classes such as `ParameterizedMessage`, `ReusableParameterizedMessage`, `StringFormattedMessage`, `MessageFormatMessage` and `SimpleMessage` still override it without a deprecation.\n* Log4j 3 has only reached `3.0.0-beta3`; no stable 3.0 is listed in the [Apache release catalog](\u003chttps://release-catalog.apache.org/logging-log4j/index.html>).\n\nProposed by Nelson Osacky: suppress the warning now and revisit the call in the next major.\n\nAction taken on behalf of Nelson Osacky.","author":{"url":"https://github.com/runningcode","@type":"Person","name":"runningcode"},"datePublished":"2026-10-26T08:50:14Z","url":"https://github.com/getsentry/sentry-java/issues/6377"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:00d506f5-5479-f5e2-1904-803776f625e0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8846:20A8C6:169851:1F1F5B:6B046592 |
| html-safe-nonce | 0d12971164034c117851a6d9c63bf502f533ccd412780261f18150f97085a9dc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODQ2OjIwQThDNjoxNjk4NTE6MUYxRjVCOjZCMDQ2NTkyIiwidmlzaXRvcl9pZCI6IjQyODE1NDUyNzE1OTIzNzk3OTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1227b7368f7993dc0c2077c5dd063b88049dc2738a29069af888f76152424b5c |
| hovercard-subject-tag | issue:6036393533 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-java/6377/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b188c241f8a6fee438a8b606b15f0688b235cebb662fed8fd20ab262934cf416/getsentry/sentry-java/issues/6377 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b188c241f8a6fee438a8b606b15f0688b235cebb662fed8fd20ab262934cf416/getsentry/sentry-java/issues/6377 |
| og:image:alt | Log4j 2.24.0 deprecated org.apache.logging.log4j.message.Message.getFormat(), and sentry-log4j2 still calls it to get the unformatted message template. The deprecation warning is suppressed in #543... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | runningcode |
| hostname | github.com |
| expected-hostname | github.com |
| None | 83e4c0e58c5162177f3c161c5fbad38527ae04c11ac14980f9f9d85ae2027b1f |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-java git https://github.com/getsentry/sentry-java.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3368190 |
| octolytics-dimension-repository_nwo | getsentry/sentry-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3368190 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ca4d07a7cef4e4b75f821dc25e7300d80c1450a9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width