🌲 Load pino logs into Papertrail
Branch: master
Clone or download
Latest commit ef15ed4 Feb 11, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs updating docs Aug 13, 2018
lib Add a --message-only parameter Dec 25, 2018
test Merge branch 'remove-hardcoded-year' of https://github.com/mattiash/p… Jan 4, 2019
.editorconfig initial commit Jul 19, 2018
.gitignore initial commit Jul 19, 2018
.travis.yml add osx tests Dec 21, 2018
README.md doc updates Feb 11, 2019
appveyor.yml WIP on (no branch): 033ce61 fix: pin pino to 5.6.0 Sep 19, 2018
index.js Add a --message-only parameter Dec 25, 2018
package-lock.json dep updates Feb 11, 2019
usage.txt Add a --message-only parameter Dec 25, 2018



Travis AppVeyor Known Vulnerabilities Coverage Status Greenkeeper badge js-standard-style

This module provides a "transport" for pino that forwards messages to the papertrail log service through an UDPv4 socket. The module can echo the received logs or work silently.

You should install pino-papertrail globally for ease of use:

$ npm install --production -g pino-papertrail


Given an application foo that logs via pino, and a papertrail destination that collects logs on port UDP 12345 on address bar.papertrailapp.com, you would use pino-papertrail like so:

$ node foo | pino-papertrail --host bar.papertrailapp.com --port 12345 --appname foo


You can pass the following options via cli arguments:

Description Short command Full command
Display help information -h --help
Display version -v --version
Application name (default: pino) -a --appname
Echo messages to the console (default: true) -e --echo
Only send msg property as message to papertrail (default: false) -m --message-only
Papertrail destination address (default: localhost) -H --host
Papertrail destination port (default: 1234) -p --port


Osmond van Hemert Github Web


See the CONTRIBUTING file for details.


Licensed under MIT.