CppLogging 1.0.5.0
C++ Logging Library
Loading...
Searching...
No Matches
error_appender.cpp
Go to the documentation of this file.
1
10
11#include <cstdio>
12
13namespace CppLogging {
14
16{
17 // Skip logging records without layout
18 if (record.raw.empty())
19 return;
20
21 // Append logging record content
22 std::fwrite(record.raw.data(), 1, record.raw.size() - 1, stderr);
23}
24
26{
27 // Flush stream
28 std::fflush(stderr);
29}
30
31} // namespace CppLogging
void AppendRecord(Record &record) override
Append the given logging record.
void Flush() override
Flush the logging appender.
Logging record.
Definition record.h:37
std::vector< uint8_t > raw
Record content after layout.
Definition record.h:53
Error (stderr) appender definition.
C++ Logging project definitions.
Definition appender.h:15