Convert all logs to structured logging for consistency
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from google/sam
-
good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 3/5 1-2 days Newbie friendliness 70/100
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
PEP story Open
Difficulty 4/5 3-5 days Newbie friendliness 30/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
acceptance-tests phase-coding schema-coverage testing triaged
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100