Skip to content

v1.15.0 - Custom Logger Support

Latest

Choose a tag to compare

@michaelbutler1998 michaelbutler1998 released this 31 Mar 15:37
· 41 commits to main since this release

New Features

  • Custom Logger Injection — Added setLogger() method to allow injecting a custom logger (e.g. Datadog, Sentry, Bugsnag) instead of using console. Call setLogger() before initialize() to route all SDK logs through your own logging system.
  • Exported InsertAffiliateLogger type for TypeScript users

Notes

  • initialize() signature is unchanged — no breaking changes
  • If setLogger() is not called, the SDK behaves exactly as before