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: How to turn off native capacitor plugin logging #2438

Closed
2 of 4 tasks
Reiss-Cashmore opened this issue Feb 12, 2020 · 5 comments · Fixed by #2619
Closed
2 of 4 tasks

feat: How to turn off native capacitor plugin logging #2438

Reiss-Cashmore opened this issue Feb 12, 2020 · 5 comments · Fixed by #2619

Comments

@Reiss-Cashmore
Copy link

Reiss-Cashmore commented Feb 12, 2020

Feature Request

Describe the Feature Request

My console gets filled with lots of logs coming from my capacitor plugin. It logs out

.addListener
.subscribe

Calls from my plugin

I have tried both of the below in my capacitor.config.json from these links:
#1640
#1431

{
  "production": true,
  "useLog": false,
}

Screenshot 2020-02-12 at 16 11 18
Screenshot 2020-02-12 at 16 12 00

Platform Support Requested

  • Android
  • iOS
  • Electron
  • Web

Describe Preferred Solution

Config option for disabling all CAPLogs

Describe Alternatives

A console flag ?

@jcesarmobile
Copy link
Member

jcesarmobile commented Feb 19, 2020

it's

"ios": {
    "hideLogs": true
}

leaving open to document it

@j0nT
Copy link

j0nT commented Feb 27, 2020

Good work on CAPLog ... as well as optino to disable all it would be helpful on all platforms to be able to configure a logLevel (CRIT, WARN, INFO, etc)

@biesbjerg
Copy link

Noticed the docs are not updated: https://capacitor.ionicframework.com/docs/apis/console/

Currently it's not possible to disable it, but that feature is coming.

@inorganik
Copy link

inorganik commented Aug 4, 2022

@jcesarmobile We currently have an all-or-nothing situation - where if we silence plugin logs we also silence logs in our code (at least in the Xcode console). Is there a way to just disable a specific plugin's logs? I would like to disable logs for @capacitor/storage (super noisy) but I still need to see my logs.

@ionitron-bot
Copy link

ionitron-bot bot commented Nov 10, 2022

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Nov 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants