CppLogging
1.0.5.0
C++ Logging Library
Loading...
Searching...
No Matches
source
logging
appenders
memory_appender.cpp
Go to the documentation of this file.
1
9
#include "
logging/appenders/memory_appender.h
"
10
11
namespace
CppLogging
{
12
13
void
MemoryAppender::AppendRecord
(
Record
& record)
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
CppLogging::MemoryAppender::AppendRecord
void AppendRecord(Record &record) override
Append the given logging record.
Definition
memory_appender.cpp:13
CppLogging::Record
Logging record.
Definition
record.h:37
CppLogging::Record::raw
std::vector< uint8_t > raw
Record content after layout.
Definition
record.h:53
memory_appender.h
Memory appender definition.
CppLogging
C++ Logging project definitions.
Definition
appender.h:15
Generated by
1.9.8