Name: hapi-bunyan
Owner: Auth0
Description: Bunyan Hapi plugin
Created: 2015-01-28 18:48:05.0
Updated: 2015-10-08 13:45:32.0
Pushed: 2015-03-19 21:15:08.0
Homepage: null
Size: 167
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This a simple Bunyan plugin for Hapi.
Options
true
if it handled the event.undefined
data.bunyan = require('bunyan');
hapi = require('hapi');
server = new hapi.Server();
er.connection({ port: 8000 });
er.route({
thod: 'GET',
th: '/',
ndler: function(request, reply) {
request.log.info('just a test');
reply({ hello: 'world' });
config = {
gister: require('hapi-bunyan'),
tions: {
logger: bunyan.createLogger({ name: 'test', level: 'debug' }),
er.register(config, function(err) {
(err) throw err;
er.start();
This work is licensed under the MIT License (see the LICENSE file).