-
Notifications
You must be signed in to change notification settings - Fork 93
feat: Add some chain calls for Log facade #276
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 8000 your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job, could you please add some screenshots for this feature?
Codecov ReportPatch coverage is
📢 Thoughts on this report? Let us know!. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A great PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect! please add some test cases.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pretty good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You have a big improvement, Bro.
log/formatter/general_test.go
Outdated
if testing.Short() { | ||
t.Skip("Skipping tests of using docker") | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
S: This judgment is only used in the Windows system, this is unnecessary if this case can be tested in Windows. The same as below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job!
Closes goravel/goravel#240
📑 Description
This pull request introduces a set of chainable function calls to enhance the capabilities of the Log facade. These new functions enable more efficient and expressive logging configuration and customization, making it easier to attach relevant information to log entries. The added methods include:
User
: Associates a user with the log entry.Owner
: Specifies the responsible colleague or team for handling the logged error, aiding in alerting workflows.Hint
: Provides a hint that can expedite debugging processes.Code
: Set a code or slug that describes the errorWith
: Appends key-value pairs to the log entry's contextual informationTags
: Adds tags to categorize and group log entriesRequest
: Links an HTTP request to the log entry.Response
: Associates an HTTP response with the log entry.In
: Sets the feature category or domain in which the log entry is relevant✅ Checks
ℹ Additional Information