-
-
Notifications
You must be signed in to change notification settings - Fork 96
feat: Talker Chopper logger #355
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
Conversation
Reviewer's Guide by SourceryThis pull request introduces the No diagrams generated as the changes look simple and do not need a visual representation. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
Hey @techouse - I've reviewed your changes - here's some feedback:
Overall Comments:
- Consider adding a section about error handling to the
README.md
to guide users on how to interpret and handle errors logged by the interceptor. - The example project could benefit from a more detailed
README.md
explaining the purpose of each service and model.
Here's what I looked at during the review
- 🟡 General issues: 2 issues found
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
packages/talker_chopper_logger/example/lib/interceptors/json_content_type_inerceptor.dart
Outdated
Show resolved
Hide resolved
packages/talker_chopper_logger/lib/talker_chopper_logger_interceptor.dart
Show resolved
Hide resolved
@Frezyx please throw an eye on this, once you can, and let me know if you want any changes. P.S. I am one of the maintainers of Chopper. 👨💻 |
…ved logging configuration
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.
Hey @techouse - I've reviewed your changes - here's some feedback:
Overall Comments:
- Consider adding a section about error handling and retry mechanisms to the README.
- The example app could benefit from a UI to toggle the logger settings to demonstrate the customization options.
Here's what I looked at during the review
- 🟡 General issues: 2 issues found
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
…opperResponseLog classes for enhanced readability
…perResponseLog classes for improved structure
…rErrorLog, ChopperRequestLog, and ChopperResponseLog classes for improved structure
@sourcery-ai review |
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.
Hey @techouse - I've reviewed your changes - here's some feedback:
Overall Comments:
- Consider adding a section about error handling in the
README.md
to guide users on how to interpret and respond to logged errors. - The example app could benefit from a more complex real-world scenario to better showcase the logger's capabilities.
Here's what I looked at during the review
- 🟡 General issues: 3 issues found
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
@Frezyx this is now dev complete with 100% test coverage. Please review it, once you have time. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #355 +/- ##
===========================================
+ Coverage 98.63% 100.00% +1.36%
===========================================
Files 3 6 +3
Lines 146 251 +105
===========================================
+ Hits 144 251 +107
+ Misses 2 0 -2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…er_logger_interceptor.dart
@Frezyx I suggest you squash-merge this commit so that it doesn't flood the master commit log. |
@techouse, thank you so much! I really appreciate your work. It's great! ❤️ |
This pull request introduces a new package,
talker_chopper_logger
, which provides logging capabilities for the Chopper HTTP client. It includes the initial implementation of the package, documentation updates, and supporting configuration files. Below is a summary of the most important changes:New Package Implementation:
talker_chopper_logger
package with an initial version (1.0.0), including its core functionality, settings, and customization options (packages/talker_chopper_logger/README.md
,packages/talker_chopper_logger/CHANGELOG.md
,packages/talker_chopper_logger/LICENSE
, [1] [2] [3].Makefile
with various commands for analyzing, formatting, testing, and managing the project (packages/talker_chopper_logger/Makefile
, packages/talker_chopper_logger/MakefileR1-R61)..gitignore
file to exclude unnecessary files and directories from version control (packages/talker_chopper_logger/.gitignore
, packages/talker_chopper_logger/.gitignoreR1-R31).Documentation and Workflow Updates:
README.md
to includetalker_chopper_logger
as a supported package and added usage instructions for integrating it withChopper
(README.md
, [1] [2] [3].README.md
for thetalker_chopper_logger
package, detailing its features, usage, and customization options (packages/talker_chopper_logger/README.md
, packages/talker_chopper_logger/README.mdR1-R140)..github/workflows/talker_chopper_logger.yaml
, .github/workflows/talker_chopper_logger.yamlR1-R64).Example Project:
talker_chopper_logger
, including relevant configuration files and documentation (packages/talker_chopper_logger/example/README.md
, [1] [2] [3] [4].Linting and Analysis:
analysis_options.yaml
files for both the main package and the example project to enforce coding standards and exclude generated files from analysis (packages/talker_chopper_logger/analysis_options.yaml
, [1]packages/talker_chopper_logger/example/analysis_options.yaml
, [2].Summary by Sourcery
Add Talker Chopper Logger package to support logging for Chopper HTTP client
New Features:
talker_chopper_logger
for logging Chopper HTTP client requests, responses, and errorsCI:
Documentation:
talker_chopper_logger
in the list of supported packagesTests:
Chores: