Skip to content
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

Added Purchases.logHandler #492

Merged
merged 2 commits into from Feb 22, 2022
Merged

Added Purchases.logHandler #492

merged 2 commits into from Feb 22, 2022

Conversation

NachoSoto
Copy link
Contributor

Fixes [sc-11102].

The default implementation is unchanged, using android.util.Log.
Users can provide their own implementation of LogHandler.

Other changes:

  • errorLog can now provide an optional throwable, which will be forwarded if set
  • Added tests to verify the handler is used
  • Removed ad-hoc usage of Log.e
  • Added API to apitester

Fixes [sc-11102].

The default implementation is unchanged, using `android.util.Log`.
Users can provide their own implementation of `LogHandler`.

## Other changes:
- `errorLog` can now provide an optional `throwable`, which will be forwarded if set
- Added tests to verify the handler is used
- Removed ad-hoc usage of `Log.e`
- Added API to `apitester`
@NachoSoto NachoSoto requested review from vegaro and a team February 21, 2022 06:12
@shortcut-integration
Copy link

This pull request has been linked to Shortcut Story #11102: [Android] Create LogHandler.

}

override fun e(tag: String, msg: String, throwable: Throwable?) {
if (throwable != null) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I love it!

@NachoSoto NachoSoto merged commit 1319d7f into main Feb 22, 2022
@NachoSoto NachoSoto deleted the log-handler branch February 22, 2022 22:40
@beylmk beylmk mentioned this pull request Feb 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants