All notable changes to this project will be documented in this file. The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- More tests including tests to run on windows.
- There was a bug that meant we were sending logs far too often (fixed in the previous PR by zelch).
- Made the tests more robust.
- Added a SetErrorHandler method on the CloudWatchWriter to allow user defined error handling.
- Only allow one retry after an out of sequence token error.
- Fix the problem of getting out of sequence from the next sequence token.
- Decrease the shutdown time -- the final batch after
CloudWatchWriter.Close()
has been called will be sent as soon as it has been formed, rather than waiting for the next scheduled batch time.
- Removed zerolog from the go.mod file (it is now in the example package go.mod file)
- Renamed the repo cloudwatchwriter (was zerolog2cloudwatch)
- The writer now respects the 10k limit set by AWS for batch size (as well as the 1MB limit).
- Now sends logs in batches with a default batch interval of 5 seconds.
- Added Close method to CloudWatchWriter which blocks until all the messages have been sent.
- Added SetBatchInterval method which easily allows the user to change the interval between sending batches of logs to CloudWatch.
- Basic synchronous implementation of NewWriter and NewWriterWithClient.