Add a way to filter debug logging based on a given debugLevel in posthog-react-native #113
Labels
Configuration
enhancement
New feature or request
help wanted
Extra attention is needed
react-native
repository maintenance
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: