posthog-js icon indicating copy to clipboard operation
posthog-js copied to clipboard

Console logs support when using JS/TS console.log and friends

Open marandaneto opened this issue 1 year ago • 2 comments

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

marandaneto avatar Oct 25 '24 11:10 marandaneto

cc @jrusso1020

marandaneto avatar Oct 25 '24 11:10 marandaneto

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

marandaneto avatar Nov 18 '25 20:11 marandaneto