result.js 238B

123456789101112131415
  1. var log = {
  2. SUCCESS : []
  3. , FAILURE : []
  4. , SKIPPED : []
  5. }
  6. var statuslog = function (err, data){
  7. if(err) log.FAILURE.push( {err, data} )
  8. else log.SUCCESS.push(data)
  9. }
  10. module.exports = {
  11. 'log' : log
  12. , 'statuslog' : statuslog
  13. }