You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using <PostHogProvider apiKey={...} debug={__DEV__}>, PostHog produces absurd amounts of logging with "PostHog Debug" messages, especially if you have heavy instrumentation. This is very distracting and can hide more important log messages.
Describe the solution you'd like
Add an option to PostHogProvider like quiet or loggingEnabled={false} that can be used to disable the logging.
Describe alternatives you've considered
Writing really gross JSX workarounds
Patching the package with patch-package (currently doing this)
Related sub-libraries
All of them
posthog-web
posthog-node
posthog-react-native
Additional context
<3
The text was updated successfully, but these errors were encountered:
Btw you can still do posthog.debug(false) at runtime, or just don't use debug={__DEV__} since it's disabled by default anyway.
The loggingEnabled suggestion is pretty much what's already available.
marandaneto
changed the title
Add a way to disable debug logging in posthog-react-native
Add a way to filter debug logging based on a given debugLevel in posthog-react-native
Feb 20, 2024
Is your feature request related to a problem?
When using
<PostHogProvider apiKey={...} debug={__DEV__}>
, PostHog produces absurd amounts of logging with "PostHog Debug" messages, especially if you have heavy instrumentation. This is very distracting and can hide more important log messages.Describe the solution you'd like
Add an option to PostHogProvider like
quiet
orloggingEnabled={false}
that can be used to disable the logging.Describe alternatives you've considered
patch-package
(currently doing this)Related sub-libraries
Additional context
<3
The text was updated successfully, but these errors were encountered: