Hapi plugin for logging to to logentries
Basically you add your logentries token and app name to the options, and it will start logging to the console and the channel you provide.
It currently has a very narrow focus, but it would be easy to make it do more.
See the example server.js for how to use it.
You will need to point your package.json to this repo, or a fork until it is cleaned up for npm release.
(Coming soon)
$ npm install --save git://github.com/lyric/hapi-logentries.git
var options = {
token: '000token111',
appName: "MyApp"
};
server.pack.register({
plugin: require("hapi-logentries"),
options: options
}
, function(err) {
if (err) throw err;
server.start(function() {
console.log("Hapi server started @ " + server.info.uri);
});
});
Currently this is very basic for my needs, PRs are welcome
(Nothing yet)
Copyright (c) 2014 Lyric Hartley. Licensed under the MIT license.