-
-
Couldn't load subscription status.
- Fork 101
chore: update logger output type for improved clarity #368
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
chore: update logger output type for improved clarity #368
Conversation
Reviewer's GuideThis pull request refactors File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
Codecov ReportAll modified and coverable lines are covered by tests β
β Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files@@ Coverage Diff @@
## master #368 +/- ##
==========================================
- Coverage 98.17% 92.85% -5.32%
==========================================
Files 28 9 -19
Lines 603 84 -519
==========================================
- Hits 592 78 -514
+ Misses 11 6 -5 β View full report in Codecov by Sentry. π New features to boost your workflow:
|
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 and they look great!
Here's what I looked at during the review
- π’ General issues: all looks good
- π’ 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.
|
Hello @techouse ! |
This pull request refactors the
TalkerLoggerclass inpackages/talker_logger/lib/src/logger.dartto improve type clarity and maintainability. The main changes include introducing a typedef for the logger output function and updating related method signatures, as well as minor cleanup of redundant blank lines.Type improvements:
LoggerOutputto represent the logger output function (typedef LoggerOutput = void Function(String message);) and replaced all instances ofvoid Function(String message)withLoggerOutputin theTalkerLoggerclass. [1] [2] [3]Code cleanup:
debug,verbose,info, andgoodlogging methods for better readability. [1] [2] [3]Summary by Sourcery
Improve type clarity and maintainability of the TalkerLogger class by introducing a typedef for logger output and cleaning up code structure
Enhancements:
LoggerOutputto standardize logger output function typecopyWithmethod using arrow syntaxChores:
LoggerOutputtype