winston-transport-papertrail
winston-transport module for papertrail.
install
# for npm npm install --save winston-transport-papertrail # for yarn yarn add winston-transport-papertrail
es6 usage
;; // define env configs received from papertrail log destination settings// @url https://papertrailapp.com/account/destinationsconst HOST = 'logs5.papertrailapp.com'; // replace this from the value you receive from above.const PORT = '12456'; // replace this from the value you receive from above.const LEVEL = 'debug'; // @url https://github.com/winstonjs/winston#logging-levels winston;// orconst logger = transports: papertrailConfig: host: HOST port: PORT level: LEVEL ;
es5 usage
var winston = ; //// Requiring `winston-papertrail` will expose// `winston.transports.WinstonTransportPapertrail`//WinstonTransportPapertrail; winston;