Android: Add Log Configuration to UI

This commit is contained in:
Ryan Meredith
2020-07-24 13:58:46 -04:00
parent 520af035d2
commit fdcc6a436b
16 changed files with 222 additions and 6 deletions

View File

@ -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;