MayaFlux
0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
◆
level_color()
static constexpr std::string_view Lila::Commentator::level_color
(
LogLevel
level
)
inline
static
constexpr
private
Gets the ANSI color code for a log level.
Parameters
level
LogLevel value.
Returns
Color code string.
Definition at line
277
of file
Commentator.hpp
.
278
{
279
switch
(level) {
280
case
LogLevel::TRACE:
281
return
Colors::Cyan
;
282
case
LogLevel::DEBUG:
283
return
Colors::Blue
;
284
case
LogLevel::INFO:
285
return
Colors::Green
;
286
case
LogLevel::WARN:
287
return
Colors::Yellow
;
288
case
LogLevel::ERROR:
289
case
LogLevel::FATAL:
290
return
Colors::BrightRed
;
291
default
:
292
return
Colors::Reset
;
293
}
294
}
Lila::Colors::Cyan
constexpr std::string_view Cyan
Definition
Commentator.hpp:28
Lila::Colors::BrightRed
constexpr std::string_view BrightRed
Definition
Commentator.hpp:29
Lila::Colors::Green
constexpr std::string_view Green
Definition
Commentator.hpp:24
Lila::Colors::Blue
constexpr std::string_view Blue
Definition
Commentator.hpp:26
Lila::Colors::Yellow
constexpr std::string_view Yellow
Definition
Commentator.hpp:25
Lila::Colors::Reset
constexpr std::string_view Reset
Definition
Commentator.hpp:22
Lila
Commentator
Generated by
1.9.8