folly::AsyncLogWriter::setMaxBufferSize

Set the maximum buffer size for this AsyncLogWriter, in bytes.

Synopsis

Declared in <folly/logging/AsyncLogWriter.h>

void
setMaxBufferSize(size_t size);

Description

This controls the upper bound on how much unwritten data will be buffered in memory. If messages are being logged faster than they can be written to output file, new messages will be discarded if they would cause the amount of buffered data to exceed this limit.

Parameters

NameDescription
sizeThe maximum number of bytes to buffer.