SA_Logger
Sapphire's Suite's C++ Logger.
Loading...
Searching...
No Matches
ConsoleColorTheme.hpp
Go to the documentation of this file.
1// Copyright (c) 2023 Sapphire's Suite. All Rights Reserved.
2
3#pragma once
4
5#ifndef SAPPHIRE_LOGGER_CONSOLE_COLOR_THEME_GUARD
6#define SAPPHIRE_LOGGER_CONSOLE_COLOR_THEME_GUARD
7
10
20namespace SA
21{
26 {
28 uint8_t normal = CslColor::Bright_FG;
29
31 uint8_t info = CslColor::Blue_FG | CslColor::Bright_FG;
32
34 uint8_t warning = CslColor::Yellow_FG;
35
37 uint8_t error = CslColor::Red_FG | CslColor::Bright_FG;
38
40 uint8_t assertSuccess = CslColor::Green_FG | CslColor::Bright_FG;
41
43 uint8_t assertFailure = CslColor::Magenta_FG | CslColor::Bright_FG;
44
45
51 const uint8_t* Data() const;
52
59 };
60}
61
62
65#endif // GUARD
Console Color enum implementation.
Log level enum implementation.
LogLevel
All levels of logging.
Definition LogLevel.hpp:26
Definition ConsoleColorTheme.hpp:26
uint8_t error
Error level color.
Definition ConsoleColorTheme.hpp:37
uint8_t info
Info level color.
Definition ConsoleColorTheme.hpp:31
void SetConsoleColorFromLevel(LogLevel _lvl) const
Set console color from log level using theme.
uint8_t assertSuccess
Assert Success level color.
Definition ConsoleColorTheme.hpp:40
const uint8_t * Data() const
convert theme to data type.
uint8_t normal
Normal level color.
Definition ConsoleColorTheme.hpp:28
uint8_t warning
Warning level color.
Definition ConsoleColorTheme.hpp:34
uint8_t assertFailure
Assert Failure level color.
Definition ConsoleColorTheme.hpp:43