Subgroup: Message

Class: QgsMessageLog

class qgis.core.QgsMessageLog

Bases: PyQt5.QtCore.QObject

Constructor for QgsMessageLog.

Interface for logging messages from QGIS in GUI independent way. This class provides abstraction of a tabbed window for showing messages to the user. By default QgsMessageLogOutput will be used if not overridden with another message log creator function.

QGIS application uses QgsMessageLog class for logging messages in a dockable window for the user.

QgsMessageLog is not usually directly created, but rather accessed through QgsApplication.messageLog()

Methods

childEvent
connectNotify
customEvent
disconnectNotify
isSignalConnected
logMessage add a message to the instance (and create it if necessary)
receivers
sender
senderSignalIndex
timerEvent

Signals

messageReceived messageReceived(self, str, str, Qgis.

Attributes

childEvent()
connectNotify()
customEvent()
disconnectNotify()
isSignalConnected()
logMessage(message: str, tag: str = '', level: Qgis.MessageLevel = Qgis.Warning)

add a message to the instance (and create it if necessary)

messageReceived

messageReceived(self, str, str, Qgis.MessageLevel) [signal] messageReceived(self, bool) [signal]

receivers()
sender()
senderSignalIndex()
timerEvent()