GetWorld()->Exec() didn’t work for me either. However, using
GEngine->Exec(nullptr, TEXT("log <category_name> off"));
worked well. I’m temporarily disabling log, then calling the same command with “reset” word instead of “off” to restore old value.