20 if ((_buffer.size() + 1) > _limit)
21 ProcessBufferedRecords();
24 _buffer.emplace_back(std::move(record));
30 void BufferedProcessor::ProcessBufferedRecords()
33 for (
auto& record : _buffer)
47 ProcessBufferedRecords();
Buffered logging processor definition.
bool ProcessRecord(Record &record) override
Process the given logging record through all child filters, layouts and appenders.
void Flush() override
Flush the current logging processor.
bool IsStarted() const noexcept override
Is the logging processor started?
virtual bool ProcessRecord(Record &record)
Process the given logging record through all child filters, layouts and appenders.
virtual void Flush()
Flush the current logging processor.
C++ Logging project definitions.