-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feature/additional loggers #7
Conversation
8f19110
to
5735404
Compare
lib/src/print_strategies.dart
Outdated
import 'logging_bugfender.dart'; | ||
|
||
/// Defines how [LoggingBugfenderListener] prints. | ||
abstract class PrintStrategy { |
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.
I dont get it, why is it an interface and not just an enum?
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.
This strategy should have an abstract method that we actually can have various strategies on - creating the String log message.
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.
Initially I thought of adding some config options, for example to ColoredTextPrintStrategy
. But yeah, this should be an enum.
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.
No. Refer to my comment below and what strategies are. :)
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.
I added my comment while yours @Albert221 was not visible. Sorry :) I totally agree.
lib/src/print_strategies.dart
Outdated
import 'logging_bugfender.dart'; | ||
|
||
/// Defines how [LoggingBugfenderListener] prints. | ||
abstract class PrintStrategy { |
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.
This strategy should have an abstract method that we actually can have various strategies on - creating the String log message.
Somehow I can't get ASCII colors to work in VSCode terminal. TBH I'm a bit tired of it. I think that we can merge the current, basic version with 2 print strategies ( @Albert221 @shilangyu what do you think? I'd appreciate a 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.
LGTM
@Albert221 it still says "changes requested" :) I'd appreciate your 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.
LGTM, with few documentation remarks
Co-authored-by: Albert Wolszon <[email protected]>
Co-authored-by: Albert Wolszon <[email protected]>
fix #5 (see it for discussion)