11 #include "system/console.h"
20 if (record.
raw.empty())
27 CppCommon::Console::SetColor(CppCommon::Color::DARKGREY);
30 CppCommon::Console::SetColor(CppCommon::Color::WHITE, CppCommon::Color::LIGHTRED);
33 CppCommon::Console::SetColor(CppCommon::Color::LIGHTRED);
36 CppCommon::Console::SetColor(CppCommon::Color::YELLOW);
39 CppCommon::Console::SetColor(CppCommon::Color::WHITE);
42 CppCommon::Console::SetColor(CppCommon::Color::LIGHTMAGENTA);
45 CppCommon::Console::SetColor(CppCommon::Color::GREY);
50 std::fwrite(record.
raw.data(), 1, record.
raw.size() - 1, stdout);
53 CppCommon::Console::SetColor(CppCommon::Color::WHITE);
void Flush() override
Flush the logging appender.
void AppendRecord(Record &record) override
Append the given logging record.
Level level
Level of the logging record.
std::vector< uint8_t > raw
Record content after layout.
Console (stdout) appender definition.
C++ Logging project definitions.