Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Convert all logs to structured logging for consistency

Open
#331 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Active
Tech stack
go
Domain
observability

Research direction

Start by reviewing PR #328 and inventorying the remaining logger.Debugf/Infof/Warnf/Errorf call sites, organizing the work into per-package chunks. Reuse the event, peer, timestamp, and key field vocabulary where applicable; done means the remaining printf-style call sites use structured w-variants without requiring regex parsing.

Written by the indexing model from the issue text.

Description

PR #328 converts the six [Mesh Event] log lines to structured Warnw/Infow so machine consumers can parse them. The remaining ~400 printf-style call sites (logger.Debugf/Infof/Warnf/Errorf) are still prose.

Convert them to the w-variants with key-value fields for consistency, so any line can be consumed programmatically without regexing message text.

Notes:

  • Mechanical but large; best done in per-package chunks to keep review manageable.
  • Reuse the field vocabulary started in #328(event, peer, timestamp, key) where applicable.
Dominant language
Go
Stars
926
Forks
138
Avg merge
11h 34m
Merged PRs (30d)
117

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from google/sam

All issues in google/sam

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.