divshot-logger
v1.0.0
Published
Logging for all things Divshot
Downloads
15
Readme
divshot-logger
Logging for all things Divshot
Install
npm install divshot-logger --save
Usage
var logger = require('divshot-logger')('App Name', {
/* OPTIONS */
console: true,
hosted: true,
colorize: true
});
Options
console
- write to the current environment's stdout (i.e. console.log). Good for local dev.hosted
- write the the configured remote logging platform. Requireshost
andport
options to be configured in setup or PAPERTRAIL_HOST and PAPERTRAIL_PORT to be configured in the environment.host
- host of the remote Papertrail accountport
- port of the remote Papertrail accountcolorize
- colored logs