Skip to content

Comments

switch logging to slog#276

Open
jlambert121 wants to merge 1 commit intogruntwork-io:mainfrom
jlambert121:slog2
Open

switch logging to slog#276
jlambert121 wants to merge 1 commit intogruntwork-io:mainfrom
jlambert121:slog2

Conversation

@jlambert121
Copy link

Fixes #82.

Currently all logging is done via utils.Logger which just outputs logging to stdout. It would be nice to have more control over logging by silencing logging when not needed or injecting a separate logger (compatible with *slog.Logger).

There is a lot of lines of change here, but it's just creating a slog.Handler that prefixes [boilerplate] to log lines to maintain the existing look and passing an instance of the logger throughout. go is not my primary language though, any feedback is greatly appreciated!

Replaces #189 and #275

Sorry for the PR noise, I missed that the default branch name changed and rebased off of the wrong branch.

@vercel
Copy link

vercel bot commented Feb 14, 2026

@jlambert121 is attempting to deploy a commit to the Gruntwork Team on Vercel.

A member of the Team first needs to authorize it.

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.

Implement logger with logging levels

1 participant