Add Command to Set Logging/Filter Rules at Runtime (#4637)

Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
nerix
2023-05-17 23:32:50 +02:00
committed by GitHub
parent ce47d27d41
commit 347f216abf
5 changed files with 67 additions and 0 deletions
@@ -7,6 +7,7 @@
#include "common/QLogging.hpp"
#include "common/SignalVector.hpp"
#include "controllers/accounts/AccountController.hpp"
#include "controllers/commands/builtin/chatterino/Debugging.hpp"
#include "controllers/commands/builtin/twitch/ChatSettings.hpp"
#include "controllers/commands/builtin/twitch/ShieldMode.hpp"
#include "controllers/commands/Command.hpp"
@@ -3211,6 +3212,8 @@ void CommandController::initialize(Settings &, Paths &paths)
this->registerCommand("/shield", &commands::shieldModeOn);
this->registerCommand("/shieldoff", &commands::shieldModeOff);
this->registerCommand("/c2-set-logging-rules", &commands::setLoggingRules);
}
void CommandController::save()