Skip to content
Papertrail transport for Winston
JavaScript
Pull request Compare This branch is 100 commits behind kenperkins:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
test
.gitignore
README.md
changelog.md
package.json

README.md

winston-papertrail

A Papertrail transport for winston.

Installation

Installing npm (node package manager)

  $ curl http://npmjs.org/install.sh | sh

Installing winston-papertrail

  $ npm install winston
  $ npm install winston-papertrail

Usage

  var winston = require('winston');

  //
  // Requiring `winston-papertrail` will expose
  // `winston.transports.Papertrail`
  //
  require('winston-papertrail').Papertrail;

  winston.add(winston.transports.Papertrail, options);

There are a few required options for logging to Papertrail:

  • host: FQDN or IP Address of the Papertrail Service Endpoint
  • port: The TLS Endpoint TCP Port

Currently, the Papertrail transport only supports TLS logging.

  // The minimal papertrail transport config
  var papertrail = new (winston.transports.Papertrail)({
      host: 'logs.papertrailapp.com',
      port: '12345'
  });

Author: Ken Perkins

Something went wrong with that request. Please try again.