this is me testing something
Last active
August 29, 2015 14:07
-
-
Save jgallen23/103bb2406022ee18d2e7 to your computer and use it in GitHub Desktop.
Good v3 Issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() { | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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