diff options
| author | JosJuice <josjuice@gmail.com> | 2020-08-02 22:00:48 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-02 22:00:48 +0200 |
| commit | 234eaa0ff98cf51fd67514c3fe31c268c83ebd02 (patch) | |
| tree | 623ce9215205d31f8035daac70c08f155db7abe0 /Source/Core/Common/Logging/LogManager.cpp | |
| parent | bf3d1fa2d84b75e3a4e5e17fde6d0072244755e9 (diff) | |
| parent | fdcc6a436b48ffa2b0b09c9f21045cd4f8945f88 (diff) | |
Merge pull request #7252 from Ebola16/Log
Android: Add Log Configuration to UI
Diffstat (limited to 'Source/Core/Common/Logging/LogManager.cpp')
| -rw-r--r-- | Source/Core/Common/Logging/LogManager.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
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<std::string, std::string> LogManager::GetLogTypes() +{ + std::map<std::string, std::string> 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; |
