capacitor icon indicating copy to clipboard operation
capacitor copied to clipboard

[Feature]: Disable bridge toJs and fromJs logs

Open Tobertet opened this issue 3 months ago • 1 comments

Description

Sometimes, plugins notify many times per second, which makes these logs unbearable.

Platforms

  • [x] iOS
  • [x] Android
  • [ ] Web

Request or proposed solution

In CapacitorBridge.swift, line 581, delete it or allow it to be configured.

CAPLog.print("⚡️ TO JS", resultJson.prefix(256))

I know about the config "loggingBehavior", but that disables all the logs. The painful one is this one.

Same on android

Alternatives

No response

Additional Information

No response

Tobertet avatar Oct 13 '25 16:10 Tobertet

We'll be investigating logging in general soon-ish.

markemer avatar Nov 11 '25 18:11 markemer