PostHog / posthog-node

Official PostHog Node library
MIT License
21 stars 19 forks source link

use a logging library or allow overriding console.log #80

Open camerondeleone opened 1 year ago

camerondeleone commented 1 year ago

What

posthog-node package includes hard-coded console.debug calls. Can this be removed? They are flooding our logs with unstructured logs.

See conversation here: https://posthog.slack.com/archives/C03JJKLEC8L/p1670622461832859 (internal)

Proposed solution

Either use a logging library (eg Pino or Roarr) or allow overriding console.log