hapi-elapsed:记录经过时间的Hapi插件 安装 需要node.js> = 0.12 npm install # # install dependent node modules 用法 // listen for our new elapsed log event server . pack . events . on ( 'log' , function ( event , tags ) { if ( tags . elapsed ) { // do something with the elapsed event console . log ( 'elapsed' , event ) ; } } ) ; var plugins = { 'hapi-elapsed' : { } } ; server . pack . require ( plugin