productionize
Simple additions for a production app
Last updated 2 years ago by dguttman .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install productionize 
SYNC missed versions from official npm registry.

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

Current Tags

  • 4.1.0                                ...           latest (2 years ago)

5 Versions

  • 4.1.0                                ...           2 years ago
  • 4.0.0                                ...           4 years ago
  • 3.0.0                                ...           4 years ago
  • 2.0.0                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 5
Dependencies (4)
Dev Dependencies (1)
Dependents (1)

Copyright 2014 - 2017 © taobao.org |