Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to disable sending events and only log them #1320

Open
TriPSs opened this issue Jul 25, 2024 · 4 comments
Open

Option to disable sending events and only log them #1320

TriPSs opened this issue Jul 25, 2024 · 4 comments

Comments

@TriPSs
Copy link

TriPSs commented Jul 25, 2024

During development it would be quite handy if we could disable the actual sending of events and only log what would have been send.

This will make implementing PostHog events easier and wont pollute the dashboard with test data.

@benjackwhite
Copy link
Collaborator

benjackwhite commented Jul 25, 2024

This is cool idea. How would you expect the SDK config to look like for this?

@TriPSs
Copy link
Author

TriPSs commented Jul 25, 2024

The posthog-node SDK has a disabled option, maybe we can add that to? If debug is then enabled it will then log (like now) the events to the console.

@alimony
Copy link

alimony commented Nov 8, 2024

Yes, this would be great. Useful during development to make sure events would be correctly logged without having to test in a real environment and pollute production data.

@pauldambra
Copy link
Member

This would be possible using #1515

I'll update the docs examples we're writing here PostHog/posthog.com#9844

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants