Remove awscli that has been accidentally added to tests
Sort events in chronological order when putting them
Add error parameter to kthxbye callback
Create log groups when missing, using the correct attribute to check for exceptions
Add @aws-sdk/client-cloudwatch-logs to peerDependencies
Use the correct attribute to understand which version @aws is launching, so that we could take correct actions
Remove cloudwatch package from devDependencies, update README accordingly. This should've been done as part of the previous version publish.
Use modular cloudwatch package instead of entire aws sdk
Update sinon
Fixed security issue in proxy-agent
Add debugging info to kthxbye
Add name
to .d.ts definition
Move aws-sdk into devDependencies
Update dependencies to address vulnerabilities
Allow to skip ensureGroupPresent
Include CloudWatch event limits
kthxbye will try to flush events before stopping the interval
Fix TS type definition
Allow custom aws cloudwatchlogs instance
Removed MAX_BATCH_SIZE_COUNT
Updated dependencies
The check to see if we're already posting events is now stream dependent
Updated TS definitions
Updated TS definitions
Updated TS definitions
Updated TS definitions
Updated TS definitions
Stringify supports circular references
New version just because I forgot to add silent property to TS definition
Remove unused variables; example on how to use messageFormatter
Update to Winston 3.0. Update dependencies. (thanks to @nfantone and @patrickrgaffney for the precious help)
Fix TypeScript type lazywithclass#79
Save nextSequenceToken and reuse it for calls to AWS
Added ability to specify a retention policy
Correctly stringifies Error objects preserving stuff like the message and the stack
Fixes lazywithclass#54
Fixes lazywithclass#55
Increased coverage
Fixed a silly bug due to having left self
instead of this
Making sure that we don't try to send empty logs (again), added a simulation tool so that we could easily test error conditions, retrying to submit if we get an error, retrying with another token if we get an InvalidSequenceTokenException
Added TypeScript definitions
Added kthxbye, to allow the user to stop setInterval and flush the logs
Not sending logs or meta information if they are emtpy
Added ability to use functions in config for groupname and streamname
Send logs immediately in case we are dealing with an uncaught exception handled by Winston
Updated dependencies and small code refactoring
Fixes a bug when under heavy load and and adds batching and truncating features (thanks @npahucki)
accepts awsOptions
in the constructor and configures AWS accordingly
using logStreamNamePrefix
in getStream
added npm run update-dependencies
to automatically update all deps in
package.json and node_modules
Added messageFormatter to format the log
Added error handler
Fixed typo in jsonMessage. Introduced testing for index.js
Update dependencies
Almost a complete rewrite. Not compatible with previous versions. It's now possible to log to multiple streams and to have different log levels. 100% test covered the lib layer.
Added support for proxy
Updated dependencies
Group or stream are created if they are not found
Support Winston 2.0
Dealing with a bug that prevented to push logs
Added paging to describeLogStreams
Added jsonMessage
in options for when you want to send the log object as JSON
formatted string
Introduced winston as peer dependency
Fixed region config to allow SDK to pull from IAM role when running on EC2
Increase logEvents
batch upload to 20 items
Construct the AWS object, don't update it.
Updated winston.
Updated dependencies.
Checking if logs are empty before splicing them. Logging if getting an error while fetching the token from AWS.
Added a setInterval
around the uploading function, to avoiding flooding AWS
and thus getting rejected.
Work around to the AWS time limit for sending events.
First release