MCPcopy Create free account
hub / github.com/chronoxor/CppLogging / ProcessRecord

Method ProcessRecord

source/logging/processors/buffered_processor.cpp:13–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11namespace CppLogging {
12
13bool BufferedProcessor::ProcessRecord(Record& record)
14{
15 // Check if the logging processor started
16 if (!IsStarted())
17 return true;
18
19 // Process all buffered logging records if the buffer limit is reached
20 if ((_buffer.size() + 1) > _limit)
21 ProcessBufferedRecords();
22
23 // Move the given logging record into the buffer
24 _buffer.emplace_back(std::move(record));
25
26 // Always return false to stop further logging record processing
27 return false;
28}
29
30void BufferedProcessor::ProcessBufferedRecords()
31{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected