MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ feed_severity()

void MayaFlux::Journal::ConsoleSink::feed_severity ( std::ostream &  os,
Severity  severity 
) const
inlineprivate

Definition at line 98 of file ConsoleSink.hpp.

99 {
100 switch (severity) {
101 case Severity::TRACE:
102 os << AnsiColors::Cyan;
103 break;
104 case Severity::DEBUG:
105 os << AnsiColors::Blue;
106 break;
107 case Severity::INFO:
108 os << AnsiColors::Green;
109 break;
110 case Severity::WARN:
111 os << AnsiColors::Yellow;
112 break;
113 case Severity::ERROR:
115 break;
116 case Severity::FATAL:
118 break;
119 case Severity::NONE:
120 default:
121 os << AnsiColors::Reset;
122 break;
123 }
124 }
std::string severity
Definition Config.cpp:18
static constexpr std::string_view Yellow
Definition Ansi.hpp:21
static constexpr std::string_view White
Definition Ansi.hpp:25
static constexpr std::string_view Blue
Definition Ansi.hpp:22
static constexpr std::string_view Reset
Definition Ansi.hpp:15
static constexpr std::string_view Green
Definition Ansi.hpp:20
static constexpr std::string_view BgRed
Definition Ansi.hpp:36
static constexpr std::string_view Cyan
Definition Ansi.hpp:24
static constexpr std::string_view BrightRed
Definition Ansi.hpp:28

References severity.