Version: v1
Passing a Custom Logger
In the main SubscriptionService before defining subscription class you can update the logger that is being used by the package for logging. It's an optional definition and by default it uses console.*
for logging .info
, .warn
and .error
these 3 function keys are a must have for the logger you pass.
/pubsub/subscription.service.ts
You can also call setLogger from some other file like a global file, just make sure it gets imported somehow into the subscription.service
.