@iopipe/logger
Advanced tools
Comparing version 1.1.1 to 1.2.0
@@ -36,3 +36,4 @@ 'use strict'; | ||
return { | ||
enabled: Boolean(enabled) | ||
enabled: Boolean(enabled), | ||
networkTimeout: config.networkTimeout || 5000 | ||
}; | ||
@@ -81,3 +82,4 @@ } | ||
extension: '.log', | ||
requestId: this.invocationInstance.context && this.invocationInstance.context.awsRequestId | ||
requestId: this.invocationInstance.context && this.invocationInstance.context.awsRequestId, | ||
networkTimeout: this.config.networkTimeout | ||
}); | ||
@@ -84,0 +86,0 @@ } |
{ | ||
"name": "@iopipe/logger", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"description": "IOpipe plugin for logging", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
# IOpipe JS Logger Plugin | ||
[![npm version](https://badge.fury.io/js/%40iopipe%2Flogger.svg)](https://badge.fury.io/js/%40iopipe%2Flogger) | ||
[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier) | ||
@@ -42,2 +43,6 @@ [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) | ||
#### `networkTimeout` (number: optional = 5000) | ||
Network timeout for uploading logs to IOpipe. | ||
## License | ||
@@ -44,0 +49,0 @@ |
20750
163
52