Add logging in TFIDF model