Capacitor: currently there is no way to disable logs

Created on 25 Apr 2019  路  4Comments  路  Source: ionic-team/capacitor

I think it's a must-have feature, we would be able to better isolate and debug issues on native part.

https://github.com/ionic-team/capacitor/blob/8158d910905790dd98bfffe3b927e445ecfb8c6e/ios/Capacitor/Capacitor/CAPBridgeDelegate.swift#L38

high

Most helpful comment

It would be really good if there was a flag added for Android also. This is often an issue in enterprise builds because the security teams don't want the risk for any sensitive data being logged. (Which can happen easily, for example if you have a password store native plugin).

For now the only way seems to be to manually comment all the log statements.

All 4 comments

Marking this as high priority because it also has performance implications and we don't need to print out this stuff out by default but could be useful for debugging.

This looks like it was only solved for iOS? Or am I mistaken?

@biesbjerg you might be right :-) I don't see any config option to hide logs in the Android code from capacitor.

It would be really good if there was a flag added for Android also. This is often an issue in enterprise builds because the security teams don't want the risk for any sensitive data being logged. (Which can happen easily, for example if you have a password store native plugin).

For now the only way seems to be to manually comment all the log statements.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

daniel-lucas-silva picture daniel-lucas-silva  路  3Comments

alexcroox picture alexcroox  路  3Comments

Kepro picture Kepro  路  3Comments

ebk46 picture ebk46  路  3Comments

moberwasserlechner picture moberwasserlechner  路  3Comments