feat: add `sentry_log()` for plain-string log messages by jpnurmi · Pull Request #1566 · getsentry/sentry-native

@jpnurmi @claude

Add a non-printf API that accepts a plain string body and explicit
attributes. This avoids UB when user-provided text contains `%`
characters, and prevents the SDK's parameter extraction from clobbering
caller-provided `sentry.message.parameter.*` attributes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

@jpnurmi

limbonaut

This was referenced

Mar 7, 2026

@jpnurmi

@jpnurmi

limbonaut

mujacica

supervacuus

@jpnurmi jpnurmi deleted the jpnurmi/feat/log-plain branch

March 9, 2026 11:43