A Nest module wrapper for bugsnag logger.
Description
A Nest module wrapper for bugsnag-js logger.
Installation
$ npm i nest-bugsnag --save
Quick Start
Import the BugsnagModule
into the module. For example AppModule
:
;;
Then you can inject BugsnagService. Example:
;;
BugsnagService has instance property which wrap bugsnag client. So you can access it by calling:
this.logger.instance.notify'message';
Note that BugsnagModule
is a global module, it will be available in all you feature modules.
Async configuration Sample
;;;
The factory might be async and is able to inject dependencies through the inject
option.
Keywords
bugsnagJs, nestJs, logger