posthog-js
posthog-js copied to clipboard
Console logs support when using JS/TS console.log and friends
Description
Right now it only works with Native Android logcat using the captureLog flag.
We'd need to monkey patch the console log in JS similarly to the Web
iOS logs https://github.com/PostHog/posthog-ios/issues/258
cc @jrusso1020
this can be easily done now since its added for error tracking https://github.com/PostHog/posthog-js/blob/52f646a66ec2064a94a786b68c03b4df0ca73ca2/packages/react-native/src/error-tracking/utils.ts#L35-L49