aws-cloudwatch-log
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -5,2 +5,7 @@ # Change Log | ||
<a name="0.1.3"></a> | ||
## [0.1.3](https://github.com/nicolasdao/aws-cloudwatch-logger/compare/v0.1.2...v0.1.3) (2022-11-25) | ||
<a name="0.1.2"></a> | ||
@@ -7,0 +12,0 @@ ## [0.1.2](https://github.com/nicolasdao/aws-cloudwatch-logger/compare/v0.1.1...v0.1.2) (2017-12-18) |
@@ -11,3 +11,2 @@ /** | ||
const aws4 = require('aws4') | ||
const path = require('path') | ||
@@ -40,3 +39,3 @@ const getRequestParams = (method, region, payload, keys={}) => { | ||
return { | ||
uri: 'https://' + path.posix.join(opts.hostname, opts.path), | ||
uri: `https://${opts.hostname}${opts.path}`, | ||
headers: opts.headers | ||
@@ -148,3 +147,3 @@ } | ||
//console.log('Oops') | ||
const token = err.response.data.expectedSequenceToken | ||
const token = err.response && err.response.data && err.response.data.expectedSequenceToken | ||
if (token) { | ||
@@ -151,0 +150,0 @@ _sequenceTokens.set(tokenKey, token) |
{ | ||
"name": "aws-cloudwatch-log", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Fast & Simple Logging to AWS CloudWatch", | ||
@@ -8,4 +8,6 @@ "main": "index.js", | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"eslint": "eslint index.js --fix", | ||
"release": "standard-version" | ||
"lint": "eslint index.js --fix", | ||
"push": "git push --follow-tags origin master && npm publish", | ||
"rls": "standard-version --release-as", | ||
"v": "node -e \"console.log(require('./package.json').version)\"" | ||
}, | ||
@@ -31,3 +33,3 @@ "repository": { | ||
"aws4": "^1.6.0", | ||
"axios": "^0.17.1" | ||
"axios": "^0.19.0" | ||
}, | ||
@@ -34,0 +36,0 @@ "devDependencies": { |
@@ -1,11 +0,5 @@ | ||
<a href="https://neap.co" target="_blank"><img src="https://neap.co/img/neap_black_small_logo.png" alt="Neap Pty Ltd logo" title="Neap" align="right" height="50" width="120"/></a> | ||
# AWS CloudWatch Logger · [](https://www.npmjs.com/package/aws-cloudwatch-log) [](https://opensource.org/licenses/BSD-3-Clause) [](#this-is-what-we-re-up-to) | ||
# AWS CloudWatch Logger - Fast & Simple Logging to AWS CloudWatch | ||
[![NPM][1]][2] | ||
Fast & Simple Logging to AWS CloudWatch. It logs in the background without blocking. By default, it will immediately send the log to your configured AWS LogStream. You can also easily configure it so that the logs are buffered for a specific period of time before being sent as a batch to AWS LogStream. This is the recommended way. | ||
[1]: https://img.shields.io/npm/v/aws-cloudwatch-log.svg?style=flat | ||
[2]: https://www.npmjs.com/package/aws-cloudwatch-log | ||
The logger logs in the background. By default, it will immediately send the log to your configured AWS LogStream. You can also easily configure it so that the logs are buffered for a specific period of time before being sent as a batch to AWS LogStream. This is the recommended way. | ||
For a quick recap on how logging on AWS CloudWatch works, refer to the [Annex below](#annex-short-explanation-about-logs-in-aws-cloudwatch). | ||
@@ -67,5 +61,2 @@ | ||
# This Is What We re Up To | ||
We are Neap, an Australian Technology consultancy powering the startup ecosystem in Sydney. We simply love building Tech and also meeting new people, so don't hesitate to connect with us at [https://neap.co](https://neap.co). | ||
# Annex - Short Explanation About Logs In AWS CloudWatch | ||
@@ -76,4 +67,26 @@ Logs and events can't simply being added to CloudWatch. Instead, they are added to a __LogStream__ which belongs to a __LogGroup__. That means that before being able to log an event to CloudWatch, you need to have created both a __LogStream__ and a __LogGroup__. You can either do this within the AWS Web Console inside CloudWatch, or you can programmatically do this (_aws-cloudwatch-log_ allows to create a new LogStream [here](#creating-a-logstream)). | ||
# This Is What We re Up To | ||
We are Neap, an Australian Technology consultancy powering the startup ecosystem in Sydney. We simply love building Tech and also meeting new people, so don't hesitate to connect with us at [https://neap.co](https://neap.co). | ||
Our other open-sourced projects: | ||
#### Web Framework & Deployment Tools | ||
* [__*webfunc*__](https://github.com/nicolasdao/webfunc): Write code for serverless similar to Express once, deploy everywhere. | ||
* [__*now-flow*__](https://github.com/nicolasdao/now-flow): Automate your Zeit Now Deployments. | ||
#### GraphQL | ||
* [__*graphql-serverless*__](https://github.com/nicolasdao/graphql-serverless): GraphQL (incl. a GraphiQL interface) middleware for [webfunc](https://github.com/nicolasdao/webfunc). | ||
* [__*schemaglue*__](https://github.com/nicolasdao/schemaglue): Naturally breaks down your monolithic graphql schema into bits and pieces and then glue them back together. | ||
* [__*graphql-s2s*__](https://github.com/nicolasdao/graphql-s2s): Add GraphQL Schema support for type inheritance, generic typing, metadata decoration. Transpile the enriched GraphQL string schema into the standard string schema understood by graphql.js and the Apollo server client. | ||
* [__*graphql-authorize*__](https://github.com/nicolasdao/graphql-authorize.git): Authorization middleware for [graphql-serverless](https://github.com/nicolasdao/graphql-serverless). Add inline authorization straight into your GraphQl schema to restrict access to certain fields based on your user's rights. | ||
#### React & React Native | ||
* [__*react-native-game-engine*__](https://github.com/bberak/react-native-game-engine): A lightweight game engine for react native. | ||
* [__*react-native-game-engine-handbook*__](https://github.com/bberak/react-native-game-engine-handbook): A React Native app showcasing some examples using react-native-game-engine. | ||
#### Tools | ||
* [__*aws-cloudwatch-logger*__](https://github.com/nicolasdao/aws-cloudwatch-logger): Promise based logger for AWS CloudWatch LogStream. | ||
# License | ||
Copyright (c) 2017, Neap Pty Ltd. | ||
Copyright (c) 2018, Neap Pty Ltd. | ||
All rights reserved. | ||
@@ -96,1 +109,3 @@ | ||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
<p align="center"><a href="https://neap.co" target="_blank"><img src="https://neap.co/img/neap_color_horizontal.png" alt="Neap Pty Ltd logo" title="Neap" height="89" width="200"/></a></p> |
19747
109
6
239
+ Addedaxios@0.19.2(transitive)
+ Addedfollow-redirects@1.5.10(transitive)
- Removedaxios@0.17.1(transitive)
- Removedfollow-redirects@1.15.9(transitive)
- Removedis-buffer@1.1.6(transitive)
Updatedaxios@^0.19.0