Skip to content

Fix slog usage for proper structured logging (#4)#71

Merged
jonbodner merged 5 commits intomasterfrom
fix-slog-usage
Feb 23, 2026
Merged

Fix slog usage for proper structured logging (#4)#71
jonbodner merged 5 commits intomasterfrom
fix-slog-usage

Conversation

@jonbodner
Copy link
Copy Markdown
Owner

Replace mechanical slog.Log(ctx, level, fmt.Sprintln/Sprintf(...)) calls with idiomatic slog.DebugContext/WarnContext/ErrorContext using structured key-value attributes. Remove unnecessary slog.AnyValue() and slog.StringValue() wrappers. Fix malformed slog.Log call in test code where key-value pairs were in the message position.

jonbodner and others added 5 commits February 22, 2026 20:59
Replace mechanical slog.Log(ctx, level, fmt.Sprintln/Sprintf(...)) calls
with idiomatic slog.DebugContext/WarnContext/ErrorContext using structured
key-value attributes. Remove unnecessary slog.AnyValue() and
slog.StringValue() wrappers. Fix malformed slog.Log call in test code
where key-value pairs were in the message position.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jonbodner jonbodner merged commit 4a89f54 into master Feb 23, 2026
1 check passed
@jonbodner jonbodner deleted the fix-slog-usage branch February 23, 2026 02:58
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.

1 participant