Merge "Easy switching of logging for TextClassifier"