auth0/hapi-bunyan

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Hapi Bunyan

This a simple Bunyan plugin for Hapi.

Documentation

Options

Example
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();
License

This work is licensed under the MIT License (see the LICENSE file).


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.