Skip to content

feat: use slog for structured logging#58

Open
icholy wants to merge 1 commit into
tbxark:masterfrom
icholy:use-slog
Open

feat: use slog for structured logging#58
icholy wants to merge 1 commit into
tbxark:masterfrom
icholy:use-slog

Conversation

@icholy
Copy link
Copy Markdown

@icholy icholy commented Apr 14, 2026

This switches the logging to use log/slog and adds a --log-level flag to control the level.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request migrates the application's logging from the standard "log" package to "slog" to support structured logging. The changes involve updating log calls across "client.go", "http.go", and "main.go" to use structured keys and appropriate log levels, as well as introducing a new "-log-level" command-line flag for configuration. Feedback was provided to standardize the key naming for failure counts in "client.go" to ensure consistency and improve log searchability.

Comment thread client.go
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