Skip to content
This repository has been archived by the owner on Apr 21, 2022. It is now read-only.

Commit

Permalink
Update README (#94)
Browse files Browse the repository at this point in the history
* update readme

* ss

* quotes

Co-authored-by: lvilya <vilya.levitskiy@teachscape.com>
  • Loading branch information
vilyapilya and lvilya authored Feb 21, 2020
1 parent d6db409 commit b8ddc3e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -437,12 +437,13 @@ exports.handler = (event, context, callback) => {
```

## HTTP Exception Handling
If the logger does not receive a successful response from the server, it retains the logs in a buffer and will retry with the next request. The size of the retry buffer that saves logs that failed to send and the retry timeout are configurable via:
If the logger does not receive a successful response from the server, it tries to send it again in the period set in `options` (`options.retryTimeout`) or the default `BACKOFF_PERIOD`. It makes three (or `RETRY_TIMES`) attempts to resend the logs. If none of the attempts was successful, the failed logs will be preserved and attempted to send with the next request. The size of the retry buffer that saves logs that failed to send and the retry timeout are configurable via:

``` javascript
var options = {
failedBufRetentionLimit: 10000000 // bytes
retryTimeout: 3000 // milliseconds
retryTimes: 5
};

var logger = Logger.setupDefaultLogger(apikey, options);
Expand Down

0 comments on commit b8ddc3e

Please sign in to comment.