How to use the log function from request

Find comprehensive JavaScript request.log code examples handpicked from public code repositorys.

7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
  timed_out = true
  var er = new Error('ETIMEDOUT')
  er.code = 'ETIMEDOUT'
  er.duration = options.timeout

  request.log.error('Timeout', { 'id':xhr._id, 'milliseconds':options.timeout })
  return options.callback(er, xhr)
}

// Some states can be skipped over, so remember what is still incomplete.
fork icon1
star icon0
watch icon1

+ 13 other calls in file