Documentation Menu
Log Message Batching
By default, each log message is sent to the server in its own HTTP request. If there are many log messages, this will lead to many HTTP requests.
You can reduce the number of HTTP requests by setting the appender option batchSize
(in JavaScript
or on the server
Log messages will be stored in a batch buffer. When there are batchSize messages in the buffer, the messages are sent to the server in one HTTP request.
Limit how long messages sit in the batch buffer
To limit how long messages will sit in the batch buffer, set the batchTimeout appender option.
To flush the batch buffer in your JavaScript, call the sendBatch method on the appender.