1.0.0 • Published 11 years ago
divshot-logger v1.0.0
divshot-logger
Logging for all things Divshot
Install
npm install divshot-logger --saveUsage
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. Requireshostandportoptions 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