ionic-team / ionic-team/capacitor

[Feature]: Disable bridge toJs and fromJs logs

Open
#8,183 1 comment 1 reaction 0 assignees View on GitHub
type: feature request
Dominant language
TypeScript
Stars
16.7k
Forks
1.3k
Avg merge
3d 15h
Merged PRs (30d)
10

Description

### 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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.