SA_Logger
Sapphire's Suite's C++ Logger.
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
SA::ConsoleColorTheme Struct Reference

#include <ConsoleColorTheme.hpp>

Public Member Functions

const uint8_t * Data () const
 convert theme to data type.
 
void SetConsoleColorFromLevel (LogLevel _lvl) const
 Set console color from log level using theme.
 

Public Attributes

uint8_t normal = CslColor::Bright_FG
 Normal level color.
 
uint8_t info = CslColor::Blue_FG | CslColor::Bright_FG
 Info level color.
 
uint8_t warning = CslColor::Yellow_FG
 Warning level color.
 
uint8_t error = CslColor::Red_FG | CslColor::Bright_FG
 Error level color.
 
uint8_t assertSuccess = CslColor::Green_FG | CslColor::Bright_FG
 Assert Success level color.
 
uint8_t assertFailure = CslColor::Magenta_FG | CslColor::Bright_FG
 Assert Failure level color.
 

Detailed Description

Console color theme by LogLevel.

Member Function Documentation

◆ Data()

const uint8_t * SA::ConsoleColorTheme::Data ( ) const

convert theme to data type.

Returns
this as uint8_t data.

◆ SetConsoleColorFromLevel()

void SA::ConsoleColorTheme::SetConsoleColorFromLevel ( LogLevel _lvl) const

Set console color from log level using theme.

Parameters
[in]_lvlLogLevel to use for theme.

The documentation for this struct was generated from the following file: