44 if (m_colors_enabled) {
45 switch (entry.severity) {
47 os << AnsiColors::Cyan;
50 os << AnsiColors::Blue;
53 os << AnsiColors::Green;
56 os << AnsiColors::Yellow;
59 os << AnsiColors::BrightRed;
62 os << AnsiColors::BgRed << AnsiColors::White;
66 os << AnsiColors::Reset;
71 os <<
"[" << Reflect::enum_to_string(entry.severity) <<
"]" << AnsiColors::Reset;
73 os << AnsiColors::Magenta <<
"[" << Reflect::enum_to_string(entry.component) <<
"]" << AnsiColors::Reset;
75 os << AnsiColors::Cyan <<
"[" << Reflect::enum_to_string(entry.context) <<
"]" << AnsiColors::Reset <<
" ";
77 if constexpr (std::is_same_v<Entry, JournalEntry>) {
79 if (entry.location.file_name() !=
nullptr) {
80 os << AnsiColors::BrightBlue <<
" (" << entry.location.file_name()
81 <<
":" << entry.location.line() <<
")" << AnsiColors::Reset;
85 if (entry.file_name !=
nullptr) {
86 os << AnsiColors::BrightBlue <<
" (" << entry.file_name
87 <<
":" << entry.line <<
")" << AnsiColors::Reset;
91 if (m_colors_enabled) {
92 os << AnsiColors::Reset;