Skip to content

phitran/hapi-logentries

 
 

Repository files navigation

hapi-logentries

NPM version Build Status Dependency Status

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.

Install

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);
    });
});

Contributing

Currently this is very basic for my needs, PRs are welcome

Release History

(Nothing yet)

License

Copyright (c) 2014 Lyric Hartley. Licensed under the MIT license.

About

hapi plugin for logging to to logentries

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%