🌲 Load pino logs into Papertrail
Branch: master
Clone or download
Latest commit ef15ed4 Feb 11, 2019
Permalink
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
LICENSE
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
package.json
usage.txt Add a --message-only parameter Dec 25, 2018

README.md

pino-papertrail

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

Usage

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

Options

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

Maintainers

Osmond van Hemert Github Web

Contributing

See the CONTRIBUTING file for details.

License

Licensed under MIT.