0.6.2 • Published 8 years ago
hummel-hapi v0.6.2
Hummel Hapi.js Integration
Allows a Hapi Server to be started and configured using hummel logging, settings, and standard configuration parameters.
All log events are intecepted and mapped to the corresponding bunyan log method by tag. (Defaults to debug)
The Hapi debug console logging is disable and piped through bunyan instead.
Install
npm install hummel-hapi --save
Usage
var server = require('hummel-hapi').createServer();
server.route({
method: 'GET',
path: '/',
handler: function(request, reply) {
reply('Hello World!');
}
});
server.run();
Versions
0.6.0
hapi: 6.6.0 => 13.0.0
lodash-node: 2.4.1 => 3.10.2