Revisit log4j2 Message.getFormat() deprecation for v9
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start with SentryAppender.captureLog and SentryAppender.createEvent in sentry-log4j2/src/main/java/io/sentry/log4j2/SentryAppender.java, then review the Log4j message interfaces and implementations mentioned in the issue. Determine how to preserve the unformatted template without relying on the deprecated method, and verify both the sentry.message.template attribute and event message behavior.
由索引模型根据 Issue 内容生成。
描述
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.
- Call sites:
SentryAppender.captureLog(populates thesentry.message.templatelog attribute) andSentryAppender.createEvent(setsMessage.messageon events) insentry-log4j2/src/main/java/io/sentry/log4j2/SentryAppender.java. - The deprecation note points to
MultiformatMessagefor implementing messages. It does not offer a replacement for reading a message's template, andgetFormattedMessage()drops the template. - In 2.26.1 the interface method is a default that returns
null. Concrete classes such asParameterizedMessage,ReusableParameterizedMessage,StringFormattedMessage,MessageFormatMessageandSimpleMessagestill override it without a deprecation. - Log4j 3 has only reached
3.0.0-beta3; no stable 3.0 is listed in the Apache release catalog.
Proposed by Nelson Osacky: suppress the warning now and revisit the call in the next major.
Action taken on behalf of Nelson Osacky.
- 主要语言
- Kotlin
- 星标
- 1.4k
- 派生
- 483
- 平均合并
- 2 天 2 小时
- 30 天内合并 PR
- 202
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
getsentry/sentry-java 的其他 Issue
-
Test the `sentry wizard` Android port可能已有人在做 @antonis 于 1 天前认领。 未关闭Platform: Java
getsentry/sentry-java#6797 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Narrow and clean up Android consumer keep rules可能已有人在做 @runningcode 于 3 天前认领。 未关闭Android Platform: Java
getsentry/sentry-java#6771 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Android Bug Platform: Java Waiting for: Product Owner
难度 4/5 3-5 天 新手友好度 45/100
getsentry/sentry-java#6758 · 4 条评论 ·
维护者通常 1 天内回复
-
Android Bug Platform: Java Replays
难度 3/5 1-2 天 新手友好度 62/100
getsentry/sentry-java#6741 · 1 条评论 ·
维护者通常 1 天内回复
-
Android Bug Platform: Java Replays
难度 3/5 1-2 天 新手友好度 50/100
getsentry/sentry-java#6740 · 1 条评论 ·
维护者通常 1 天内回复
查看 getsentry/sentry-java 的全部 Issue
相似的 Issue
-
device-support good first issue
难度 2/5 1-3 小时 新手友好度 68/100
-
Legacy Chat backups screen overlaps status and navigation bars可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
signalapp/Signal-Android#15150 ·
维护者通常 1 天内回复
-
bug triage
难度 2/5 1-3 小时 新手友好度 91/100
simplex-chat/simplex-chat#8372 ·
维护者通常 1 天内回复
-
android:core
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 90/100
championswimmer/TwoFac#178 ·
维护者通常 1 天内回复