1.3.1 • Published 5 years ago

bunyan-newrelic-stream v1.3.1

Weekly downloads
342
License
ISC
Repository
github
Last release
5 years ago

bunyan-newrelic-stream

This library will send error logs to your newrelic account. It assumes that your application has a newrelic config file all set up.

import NewRelicStream from 'bunyan-newrelic-stream';
bunyan.createLogger({
  ...
  streams: [{
    level: 'error',
    type: 'raw',
    stream: new NewRelicStream()
  }]
});

What data is sent to newrelic?

Whatever is in err. If you log an error directly logger.trace(new Error()), or via the err key logger.trace({ err: new Error() }), this library will receive the serialized contents of that error. This is generally done by the standard bunyan error serializer, but can be configured via the serializers option passed into bunyan. I recommend https://github.com/pwmckenna/bunyan-error-serializer :)

1.3.1

5 years ago

1.3.0

5 years ago

1.2.0

7 years ago

1.1.1

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago