From fdcc6a436b48ffa2b0b09c9f21045cd4f8945f88 Mon Sep 17 00:00:00 2001 From: Ryan Meredith Date: Fri, 24 Jul 2020 13:58:46 -0400 Subject: Android: Add Log Configuration to UI --- Source/Core/Common/Logging/LogManager.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Source/Core/Common/Logging/LogManager.cpp') diff --git a/Source/Core/Common/Logging/LogManager.cpp b/Source/Core/Common/Logging/LogManager.cpp index ba6e33e78d..99ddf83d67 100644 --- a/Source/Core/Common/Logging/LogManager.cpp +++ b/Source/Core/Common/Logging/LogManager.cpp @@ -239,6 +239,17 @@ bool LogManager::IsEnabled(LOG_TYPE type, LOG_LEVELS level) const return m_log[type].m_enable && GetLogLevel() >= level; } +std::map LogManager::GetLogTypes() +{ + std::map log_types; + + for (const auto& container : m_log) + { + log_types.emplace(container.m_short_name, container.m_full_name); + } + return log_types; +} + const char* LogManager::GetShortName(LOG_TYPE type) const { return m_log[type].m_short_name; -- cgit v1.2.3