Merged
Conversation
…ystem This commit introduces breaking changes by replacing the custom field system with Go's native log/slog attributes. Key updates include the removal of the FieldLogger interface and related field types, the addition of slog.Attr support, and the introduction of new logging functions. The migration guide is provided for transitioning from v0.4.1 to v0.5.0.
This commit introduces dedicated functions for all slog attribute types, including Int64, Uint64, Float64, and Any, enhancing the flexibility of error handling. The Value function is deprecated in favor of Any for better consistency. Additionally, tests are added to ensure the new attribute options work as expected.
This commit updates the error handling functions to allow passing slog.Attr directly to Errorf and Wrap, improving flexibility and usability. It also introduces new helper functions for structured attributes and updates the documentation to reflect these changes. Additionally, comprehensive tests are added to ensure the correct functionality of the new features.
This commit modifies the .golangci.yml file to update the version and adjust the enabled linters, while also refining the exclusion rules for test files. Additionally, it enhances the formatting of test files by removing unnecessary blank lines and ensuring consistent comment formatting across various test cases. The GitHub Actions workflow is updated to use the latest Go version and golangci-lint action, improving the CI process.
This commit refactors the logging functions by removing the level parameter from the Log function, making it a shorthand for logging at the Error level. A new LogLevel function is introduced to allow logging at specified levels. Additionally, tests are updated to reflect these changes, and documentation is revised to guide users on the new logging approach.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.