new RequestLogger()
Logs start and the completion or error of an http operation performed via request-promise
- Source:
Methods
(static) request(logger, options, errorHandleropt) → {Promise}
Creates two log entries for an HTTP request using the request-promise package: 'begin' and either 'end' or 'error.' See TaskLogger.execute for more information.
- Source:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
logger |
object
|
||
options |
object
|
request options |
|
errorHandler |
function
|
<optional> |
Returns:
- Type:
-
Promise
Returns the value returned by requestPromise