I'm trying to debug a pyQGIS plugin, but can't get one of the Qthread working. I was told QgsMessageLog was the best way;
QgsMessageLog.logMessage("before simplify", "plugin", level=Qgis.Info)
At best I get "NameError: name 'Qgis' is not defined", or nothing if I remove the last 1-2 arguments.
from qgis.core import QgsMessageLog
from PyQt5.QtCore import QObject
QGIS 3.2 on Win10 Pro...