CppLogging  1.0.4.0
C++ Logging Library
memory_appender.cpp
Go to the documentation of this file.
1 
10 
11 namespace CppLogging {
12 
14 {
15  // Skip logging records without layout
16  if (record.raw.empty())
17  return;
18 
19  // Append logging record content into the allocated memory buffer
20  _buffer.insert(_buffer.end(), record.raw.begin(), record.raw.end());
21 }
22 
23 } // namespace CppLogging
void AppendRecord(Record &record) override
Append the given logging record.
Logging record.
Definition: record.h:37
std::vector< uint8_t > raw
Record content after layout.
Definition: record.h:53
Memory appender definition.
C++ Logging project definitions.
Definition: appender.h:15