Skip to content

davidguttman/productionize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple additions for a production app

Resources

Stars

Watchers

Forks

Packages