1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-17 00:07:41 +02:00

Add CBasicLogConfigurator::deconfigure method to clear the global log targets

This commit is contained in:
Victor Luchits
2019-05-10 12:33:45 +03:00
parent fca9bcdd7f
commit 0fe71b7c44
2 changed files with 11 additions and 0 deletions

View File

@ -140,3 +140,10 @@ EConsoleTextColor::EConsoleTextColor CBasicLogConfigurator::getConsoleColor(cons
else
throw std::runtime_error("Color " + colorName + " unknown.");
}
void CBasicLogConfigurator::deconfigure() {
auto l = CLogger::getGlobalLogger();
if(l != nullptr) {
l->clearTargets();
}
}