Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

productionize

4.1.0 • Public • Published

productionize

NPM

Does a few simple things like overriding console.log and console.error to use for JSON logging bunyan.

It will also reduce the precision of numbers to 6 digits (so Fluentd doesn't get upset).

tl;dr: ~20 lines used in a bunch of production apps.

Usage

 
// at the very top of your app's entry:
require('productionize')('your-app-name-for-logging')
 

License

MIT

Install

npm i productionize

DownloadsWeekly Downloads

95

Version

4.1.0

License

MIT

Unpacked Size

2.95 kB

Total Files

4

Last publish

Collaborators

  • avatar