hapi-trails
hapi-trails is a Hapi plugin for logging to the Papertrail service.
About
This plugin is just a wrapper around the winston-papertrail library. It's only designed to make integrating with Hapi easier.
Usage
Install hapi-trails with npm:
npm install hapi-trails --save
Register the plugin:
server;
You can now log to Papertrail through server.plugins['hapi-shelf']
.
server;
If you visit http://localhost:8000/hello/matt you should see a message appear in your Papertrail log.