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

feat(android): hideLogs feature #2839

Merged
merged 2 commits into from
May 4, 2020
Merged

feat(android): hideLogs feature #2839

merged 2 commits into from
May 4, 2020

Conversation

imhoffd
Copy link
Contributor

@imhoffd imhoffd commented Apr 28, 2020

Identical to iOS's hideLogs option, this PR adds a hideLogs option for Android which hides all native logs from Capacitor and Capacitor plugins if set to true.

This was implemented by adding a Logger class, which should be used by Capacitor and core Capacitor plugins.

This implementation was chosen to bring parity between iOS and Android for Capacitor 2.x. In the future it may be a good idea to deprecate this feature in favor of a "log level" setting which devs would be able to configure.

Copy link
Member

@jcesarmobile jcesarmobile left a comment

Choose a reason for hiding this comment

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

looks good

@jcesarmobile jcesarmobile merged commit d60757a into master May 4, 2020
@jcesarmobile jcesarmobile deleted the android-log-changes branch May 4, 2020 12:25
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.

2 participants