hapi-elapsed: Hapi plugin which logs elapsed time
Installation
Requires node.js >= 0.12
npm install ## install dependent node modules
Usage
// listen for our new elapsed log eventserverpackevents; var plugins = 'hapi-elapsed': {};serverpack;
Goals
- compute elapsed time from the beginning of request to the end of the response
- emit log event with elapsed time
Why
A simple functional Hapi plugin which calculates and logs elapsed time
Get involved
If you have input or ideas or would like to get involved, you may:
- contact me via twitter @codewinds - http://twitter.com/codewinds
- open an issue on github to begin a discussion - https://github.com/codewinds/hapi-elapsed/issues
- fork the repo and send a pull request (ideally with tests) - https://github.com/codewinds/hapi-elapsed