-
Notifications
You must be signed in to change notification settings - Fork 253
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(logging): fixes and improvement to logging example app #3943
chore(logging): fixes and improvement to logging example app #3943
Conversation
9a9c89b
to
51efa5a
Compare
.../logging_cloudwatch/amplify_logging_cloudwatch/example/lib/amplifyconfiguration_logging.dart
Outdated
Show resolved
Hide resolved
this.category, | ||
this.logger, | ||
this.logMsgController, { | ||
this.logLevel = LogLevel.verbose, |
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.
nit: better to not set a default value so the log level would be null if not set by user.
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.
Is that desired behavior though? Since if it's null the logic prevents any log from being sent while wiping the user's log message that they wrote?
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 observation. the way I see it is if the log level is not set then user would see it and set the value. given the app does not show error if user does not set the log level but put a log message and wipes out the log message it is a good idea to set the log level to vebose.
This reverts commit f56337e.
Issue #, if available:
Description of changes:
Fix and clean logger example app.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.