Emu: make "Silence All Logs" dynamic

This commit is contained in:
Megamouse 2020-03-28 15:28:23 +01:00
parent d6b8213c9f
commit fc3a134e7d
7 changed files with 51 additions and 16 deletions

View file

@ -208,6 +208,14 @@ namespace logs
}
}
void set_channel_levels(const std::map<std::string, logs::level>& map)
{
for (auto&& pair : map)
{
logs::set_level(pair.first, pair.second);
}
}
std::vector<std::string> get_channels()
{
std::vector<std::string> result;