Merge pull request #10897 from Hibyehello/LogManager-Fix
LogManager: Dynamically get last log type
This commit is contained in:
commit
1ea0c7752e
|
@ -68,6 +68,9 @@ enum class LogType : int
|
||||||
NUMBER_OF_LOGS // Must be last
|
NUMBER_OF_LOGS // Must be last
|
||||||
};
|
};
|
||||||
|
|
||||||
|
constexpr LogType LAST_LOG_TYPE =
|
||||||
|
static_cast<LogType>(static_cast<int>(LogType::NUMBER_OF_LOGS) - 1);
|
||||||
|
|
||||||
enum class LogLevel : int
|
enum class LogLevel : int
|
||||||
{
|
{
|
||||||
LNOTICE = 1, // VERY important information that is NOT errors. Like startup and OSReports.
|
LNOTICE = 1, // VERY important information that is NOT errors. Like startup and OSReports.
|
||||||
|
|
|
@ -76,7 +76,7 @@ private:
|
||||||
LogManager& operator=(LogManager&&) = delete;
|
LogManager& operator=(LogManager&&) = delete;
|
||||||
|
|
||||||
LogLevel m_level;
|
LogLevel m_level;
|
||||||
EnumMap<LogContainer, LogType::WIIMOTE> m_log{};
|
EnumMap<LogContainer, LAST_LOG_TYPE> m_log{};
|
||||||
std::array<LogListener*, LogListener::NUMBER_OF_LISTENERS> m_listeners{};
|
std::array<LogListener*, LogListener::NUMBER_OF_LISTENERS> m_listeners{};
|
||||||
BitSet32 m_listener_ids;
|
BitSet32 m_listener_ids;
|
||||||
size_t m_path_cutoff_point = 0;
|
size_t m_path_cutoff_point = 0;
|
||||||
|
|
Loading…
Reference in New Issue