Skip to content

Instantly share code, notes, and snippets.

@jgallen23
Last active August 29, 2015 14:07
Show Gist options
  • Save jgallen23/103bb2406022ee18d2e7 to your computer and use it in GitHub Desktop.
Save jgallen23/103bb2406022ee18d2e7 to your computer and use it in GitHub Desktop.
Good v3 Issue
node_modules/

this is me testing something

var Hapi = require('hapi');
var server = new Hapi.Server();
var Good = require('good');
server.pack.register([
{ plugin: Good, options: {
reporters: [
{ reporter: Good.GoodConsole,
args: [{
events: {
//ops: '*',
request: '*',
log: '*',
error: '*'
}
}]
},
{ reporter: require('good-http'),
args: [
'http://localhost:8080',
{}
]
},
/*
{ reporter: require('good-file'),
args: [
'/tmp/test', {}
]
}
*/
]
}},
], function(err) {
if (err) {
throw err;
}
server.start(function() {
});
});
{
"name": "test",
"description": "",
"version": "0.0.1",
"dependencies": {
"good-file": "^2.0.0",
"good": "^3.0.0",
"hapi": "^6.11.1",
"good-http": "^2.0.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment