Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add cloudslog.Errors #741

Merged
merged 1 commit into from
Nov 20, 2024
Merged

feat: add cloudslog.Errors #741

merged 1 commit into from
Nov 20, 2024

Conversation

hugosandelius
Copy link
Contributor

No description provided.

@hugosandelius hugosandelius requested a review from a team as a code owner November 20, 2024 12:44
Copy link

@DavyJ0nes DavyJ0nes left a comment

Choose a reason for hiding this comment

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

LGTM! Nice addition

Copy link
Member

@radhus radhus left a comment

Choose a reason for hiding this comment

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

Great!

cloudslog/errors.go Outdated Show resolved Hide resolved
@hugosandelius hugosandelius merged commit 84e9ad3 into master Nov 20, 2024
1 check passed
@hugosandelius hugosandelius deleted the add-cloudslog.errors branch November 20, 2024 13:23
logger := slog.New(newHandler(&b, LoggerConfig{}))

logger.Info("test", Errors([]error{errors.New("test_error")}))
assert.Assert(t, strings.Contains(b.String(), "test_error"))
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we test the whole structure instead to make it clear what we expect the output to be?

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.

4 participants